Click or drag to resize
ComponentControllerGetPageTPageType Method
Gets the page of given type where the component is placed.

Namespace: Kentico.PageBuilder.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
protected internal TPageType GetPage<TPageType>()
where TPageType : TreeNode

Type Parameters

TPageType
The type of the page to return.

Return Value

Type: TPageType
Exceptions
ExceptionCondition
InvalidCastExceptionIs thrown when the page is not of given type.
See Also