Read a single page.
Namespace:
EPiServerAssembly: EPiServer (in EPiServer.dll) Version: 5.2.375.236
Syntax
| C# |
|---|
[ObsoleteAttribute("Use overload without access parameter. Access rights are ignored.", false)] public PageData GetPage( PageReference pageLink, ILanguageSelector selector, AccessLevel access ) |
Parameters
- pageLink
- Type: EPiServer.Core..::.PageReference
The page to read.
- selector
- Type: EPiServer.Core..::.ILanguageSelector
The language to select
- access
- Type: EPiServer.Security..::.AccessLevel
The minimum access level that the current user must have to retrieve the page.
Return Value
A PageData object with the page data.
Exceptions
| Exception | Condition |
|---|---|
| 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. |