Delete children of a page from storage.

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

Syntax

C#
public void DeleteChildren(
	PageReference pageLink,
	bool forceDelete,
	AccessLevel access
)

Parameters

pageLink
Type: EPiServer.Core..::.PageReference
The children of this page will be deleted.
forceDelete
Type: System..::.Boolean
Delete page even if referenced by other pages.
access
Type: EPiServer.Security..::.AccessLevel
The access level to check current user against.

Return Value

True if the delete was successful

Exceptions

ExceptionCondition
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

See Also