Click or drag to resize
IPageDataContextInitializerInitialize Method (TreeNode)
Initializes the page data context by given page.

Namespace: Kentico.Content.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
void Initialize(
	TreeNode page
)

Parameters

page
Type: CMS.DocumentEngineTreeNode
Page to be used for data context initialization.
Remarks
Please note that the page instance needs to be fully initialized and retrieved based on the current context requirements. The current culture, culture settings, and preview mode need to be reflected to provide correct data version of the page. To handle this automatically by the system, the IPageRetriever can be used to retrieve the page instance used for the data context initialization.
See Also