ComponentControllerGetPageTPageType Method |
Note: This API is now obsolete.
Namespace: Kentico.PageBuilder.Web.Mvc.Internal
[ObsoleteAttribute("Use IPageDataContextRetriever service to retrieve the current page context instead.")] protected internal TPageType GetPage<TPageType>() where TPageType : TreeNode
Exception | Condition |
---|---|
InvalidCastException | Is thrown when the page is not of given type. |