Click or drag to resize
ComponentControllerGetPageTPageType Method

Note: This API is now obsolete.

Gets the page of given type where the component is placed.

Namespace: Kentico.PageBuilder.Web.Mvc.Internal
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use IPageDataContextRetriever service to retrieve the current page context instead.")]
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