IPublishingManagerAddTarget Method
|
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax IPublishingTarget AddTarget(
string name,
IPage rootPage,
string publishingFolder
)
Function AddTarget (
name As String,
rootPage As IPage,
publishingFolder As String
) As IPublishingTarget
IPublishingTarget^ AddTarget(
String^ name,
IPage^ rootPage,
String^ publishingFolder
)
abstract AddTarget :
name : string *
rootPage : IPage *
publishingFolder : string -> IPublishingTarget
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 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