Click or drag to resize
IPageDataContextRetrieverRetrieveTPageType Method
Retrieves the current page data context.

Namespace: Kentico.Content.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
IPageDataContext<TPageType> Retrieve<TPageType>()
where TPageType : TreeNode

Type Parameters

TPageType
The type of the page to return.

Return Value

Type: IPageDataContextTPageType
Exceptions
ExceptionCondition
InvalidCastExceptionIs thrown when the page is not of given type.
InvalidOperationExceptionIs thrown when the data context is not initialized.
See Also