Create a page language in database.

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

Syntax

C#
public PageData CreateLanguageBranch(
	PageReference pageLink,
	ILanguageSelector selector,
	AccessLevel access
)

Parameters

pageLink
Type: EPiServer.Core..::.PageReference
The link to the page to create a language branch for.
selector
Type: EPiServer.Core..::.ILanguageSelector
The language to create.
access
Type: EPiServer.Security..::.AccessLevel
The minimum access level that the current user must have to create the language branch.

Return Value

A PageData object with the newly created page data.

Exceptions

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

See Also