IPublishingManagerAddTarget Method
|
Namespace: Ingeniux.CMSAssembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
SyntaxIPublishingTarget 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 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
IPublishingTargetNewly created publishing target
Exceptions
RemarksIf 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