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
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: IPageThe "srcPage" after it has been moved.
Exceptions
Exception | Condition |
---|---|
ArgumentException | When "srcPage" or "tgtParentPage" doesn't have valid Hierarchy value. |
InvalidOperationException | When "srcPage" is either Root Page or Recycle Folder. |
SecurityException | When 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