Click or drag to resize
TemplateResult Constructor (TreeNode)
Creates an instance of the TemplateResult class.

Namespace: Kentico.PageBuilder.Web.Mvc.PageTemplates
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public TemplateResult(
	TreeNode page
)

Parameters

page
Type: CMS.DocumentEngineTreeNode
Page to render.
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