Move a page to another container

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

Syntax

C#
public void Move(
	PageReference pageLink,
	PageReference destinationLink,
	AccessLevel requiredSourceAccess,
	AccessLevel requiredDestinationAccess
)

Parameters

pageLink
Type: EPiServer.Core..::.PageReference
The link to the page to move
destinationLink
Type: EPiServer.Core..::.PageReference
The container to which the page will be moved
requiredSourceAccess
Type: EPiServer.Security..::.AccessLevel
The access required on the source page
requiredDestinationAccess
Type: EPiServer.Security..::.AccessLevel
The required access on the destination page

Return Value

True if the move was successful

Remarks

If the move is from one PageProvider to another PageProvider the operation is to be seen as a create operation followed by a delete operation. The Guid based identifier for the Page will be preserved

Exceptions

ExceptionCondition
EPiServer.Core..::.AccessDeniedException Thrown AccessDeniedException when user does not have access right to perform this action.

See Also