Get a PageData object with default values.

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

Syntax

C#
public PageData GetDefaultPageData(
	PageReference parentPageLink,
	int pageTypeID,
	ILanguageSelector selector
)

Parameters

parentPageLink
Type: EPiServer.Core..::.PageReference
The parent page of the "virtual" new page.
pageTypeID
Type: System..::.Int32
The page type ID of the new page.
selector
Type: EPiServer.Core..::.ILanguageSelector
A selector to help select language

Return Value

A PageData object that contains the default values for a new page of the indicated type.

Exceptions

ExceptionCondition
EPiServer.Core..::.AccessDeniedException Thrown AccessDeniedException when user doesnt have access right to perform this action
System..::.ArgumentNullException Thrown when the parentPageLink is NOT vaild

See Also