Move a page to the Wastebasket

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

Syntax

C#
public override void MoveToWastebasket(
	PageReference pageLink
)

Parameters

pageLink
Type: EPiServer.Core..::.PageReference
The link to the page to move

Implements

IPageStore..::.MoveToWastebasket(PageReference)

Remarks

Moves a page from its current location into the Recycle Bin. This is the same as doing:
CopyC#
Move(pageLink, EPiServer.Global.EPConfig.Wastebasket, AccessLevel.Delete, AccessLevel.NoAccess);
Note: You need Delete access to the page that is being moved.

Exceptions

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

See Also