ISiteMovePage Method Ingeniux CMS Content Store API

Moves a Page together with its descendants, to the specified location.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax

IPage MovePage(
	IPage srcPage,
	IPage tgtParentPage,
	EnumCopyActions placing
)

Parameters

srcPage
Type: Ingeniux.CMSIPage
The Page to be moved
tgtParentPage
Type: Ingeniux.CMSIPage
The target reference location Page. The moved Page could be placed before, after, or as child of this Page.
placing
Type: Ingeniux.CMS.EnumsEnumCopyActions
The location to place the moved Pages relative to the "targetParentPage"

Return Value

Type: IPage
The "srcPage" after it has been moved.
Exceptions

ExceptionCondition
ArgumentExceptionWhen "srcPage" or "tgtParentPage" doesn't have valid Hierarchy value.
InvalidOperationExceptionWhen "srcPage" is either Root Page or Recycle Folder.
SecurityExceptionWhen Operating User doesn't have the necessary node-level permssions. The Operating User must have full access to both "srcPage" and the actual target parent Page.
Remarks

Two events are fired during execution of this method: BeforePageMove and AfterPageMove.

See Also

Reference