Get a PageData object with default values and specify required access level manually.
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 GetDefaultPageData( PageReference parentPageLink, int pageTypeID, AccessLevel access ) |
Parameters
- parentPageLink
- Type: EPiServer.Core..::.PageReference
The parent page of the "virtual" new page.
- pageTypeID
- Type: System..::.Int32
The page type of the new page.
- access
- Type: EPiServer.Security..::.AccessLevel
The minimum access level that the current user must have to retrieve the page.
Return Value
A PageData object that contains the default values for a new page of the indicated type.
Exceptions
| Exception | Condition |
|---|---|
| EPiServer.Core..::.AccessDeniedException | Thrown AccessDeniedException when user does not have access right to perform this action. |