Click or drag to resize
IPageSystemDataContextRetrieverRetrieve Method (Int32, Boolean, Boolean)
Retrieves page based on given parameters.

Namespace: Kentico.Content.Web.Mvc.Internal
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
TreeNode Retrieve(
	int pageIdentifier,
	bool latest,
	bool selectOnlyPublished
)

Parameters

pageIdentifier
Type: SystemInt32
Identifier of the page.
latest
Type: SystemBoolean
Indicates if configuration should be loaded from latest version of a page if workflow is applied.
selectOnlyPublished
Type: SystemBoolean
If true the page is retrieved only if it is in published state, evaluated based on workflow state and publish from/to values.

Return Value

Type: TreeNode
Returns null if page for given pageIdentifier does not exist.
Remarks
The page result is cached if latest version not retrieved.
See Also