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.492
Syntax
IPublishingTarget AddTarget(
	string name,
	IPage rootPage,
	string publishingFolder
)

Parameters

name  String
Name of the new publishing target
rootPage  IPage
Root page of the new publishing target. This value cannot be null.
publishingFolder  String
The name of the folder to publish to. This folder is a subdirectory of App_Data\pub.

Return Value

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