Move a page to the Wastebasket
Namespace:
EPiServerAssembly: EPiServer (in EPiServer.dll) Version: 6.0.530.0
Syntax
| C# |
|---|
public void MoveToWastebasket( PageReference pageLink ) |
Parameters
- pageLink
- Type: EPiServer.Core..::.PageReference
The link to the page to move
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);
Access right required AccessLevel.Delete for the page to move
Exceptions
| Exception | Condition |
|---|---|
| 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 |
| EPiServer.Core..::.AccessDeniedException | Thrown when this page or some of it's descendants is parent to a page provider and it can't be deleted. |