Click or drag to resize

IPageRemoveChildPage Method


Removes a child Page of this page.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
bool RemoveChildPage(
	IPage child
)

Parameters

child
Type: Ingeniux.CMSIPage
The child page to removed. If not provided, this method returns false.

Return Value

Type: Boolean
True if the child page is successfully removed, false otherwise
Remarks

If a child page isn't provided or that page is not child of this page this method returns false.

The current user must have permission to Delete pages. Otherwise, an error will be thrown.

The current user must have Full Access to this page. Otherwise, an error will be thrown.

If the page is not assigned to the current user and the current user doesn't have to right to assign other users' pages, an error will be thrown.

Two events are fired by this method on the page to be removed: BeforePageDelete and AfterPageDelete

See Also

Reference

[!:Ingeniux.CMS.IPage.Removed]