Click or drag to resize

IPublishingManagerAddTarget Method


Creates a new Publishing Target.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
IPublishingTarget AddTarget(
	string name,
	IPage rootPage,
	string publishingFolder
)

Parameters

name
Type: SystemString
Name of the new publishing target
rootPage
Type: Ingeniux.CMSIPage
Root page of the new publishing target. This value cannot be null.
publishingFolder
Type: SystemString
The name of the folder to publish to. This folder is a subdirectory of App_Data\pub.

Return Value

Type: IPublishingTarget
Newly created publishing target
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen name is null or whitespace, or rootPage is null
ArgumentExceptionWhen rootPage is the Recycle Folder
Remarks

If name is null or whitespace, an error is thrown.

If rootPage is null, an error is thrown.

If rootPage is the Recycle Folder, an error is thrown.

See Also