Delete a page language

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

Syntax

C#
public void DeleteLanguageBranch(
	PageReference pageLink,
	string languageBranch,
	AccessLevel access
)

Parameters

pageLink
Type: EPiServer.Core..::.PageReference
The link to the page which will be deleted
languageBranch
Type: System..::.String
The language branch to delete
access
Type: EPiServer.Security..::.AccessLevel
The required access level to perform this operation

Remarks

You cannot delete the master language branch

Exceptions

ExceptionCondition
EPiServer.Core..::.AccessDeniedException Thrown AccessDeniedException when user doesnt have access right to perform this action
System..::.ArgumentNullException Thrown when the pageLink is NOT vaild
EPiServer.Core..::.EPiServerCancelException Thrown when the DeletingPageLanguageEvent be canceled

See Also