Creates a new Publishing Target.
Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax
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: IPublishingTargetNewly created publishing target
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | When name is null or whitespace, or rootPage is null |
ArgumentException | When 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