Move a page to the Wastebasket. Base class implementation calls Move(page, WastebasketReference). A suggested implementation is to set WastebasketReference as parent and set property "PageDeleted" to true.

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

Syntax

C#
public virtual 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, WasteBasket.PageLink);
Note: You need Delete access to the page that is being moved.

See Also