Read a single page.

Namespace:  EPiServer
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public PageData GetPage(
	PageReference pageLink,
	ILanguageSelector selector
)

Parameters

pageLink
Type: EPiServer.Core..::.PageReference
The page to read.
selector
Type: EPiServer.Core..::.ILanguageSelector
Language selection

Return Value

A PageData object with the page data.

Exceptions

ExceptionCondition
EPiServer.Core..::.AccessDeniedException Thrown AccessDeniedException when user does not have access right to perform this action.
In EPiServer CMS 5 R2 (5.2.375.236) and later versions the GetPage methods no longer check access rights and will never throw and AccessDeniedException. Earlier versions of EPiServer CMS will.

See Also