Click or drag to resize

IPageRemoveChildren Method


Removes all children of this page. If the page is not in the Recycle Folder, the child pages will be moved there. Otherwise, they are permenantly deleted.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
void RemoveChildren()
Remarks

If the child page is not provided or that page is not child of this page, returns false.

The current user must have the permission to Delete pages. Otherwise, an error is thrown.

The current user must have Full Access to this page. Otherwise, an error is 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, error will be thrown.

Two events are fired by this method: BeforePageDelete and AfterPageDelete, on the direct child pages of this page.

See Also