Click or drag to resize

ISiteCopyPageSingle Method


Copies a Page without its descendants, to the specified location.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
IPage CopyPageSingle(
	IPage srcPage,
	IPage tgtParentPage,
	EnumCopyActions placing
)

Parameters

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

Return Value

Type: IPage
The copied Page
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen the parameter "srcPage" or "tgtParentPage" is null, or "tgtParentPage" being Root of the Site, and the "placing" is to a sibling position.
ArgumentExceptionWhen "srcPage" or "tgtParentPage" doesn't have valid Hierarchy value.
InvalidOperationExceptionWhen "srcPagg" is either Root Page or Recycle Folder.
SecurityExceptionWhen Operating User doesn't have the necessary node-level permssions. The Operating User must have at least read-only permission on "srcPage", and full access on the actual target parent Page.
Remarks

Two events are fired during execution of this method: BeforePageCopy and AfterPageCopy.

See Also