Click or drag to resize

IPagePresentationCollectionAddDefaultPresentation Method


Creates a new presentation, with information of applied Publishing Targets

Namespace: Ingeniux.CMS.Presentation
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
IPagePresentation AddDefaultPresentation(
	string name,
	string containerId,
	string[] pubTgtIds = null,
	string overrideId = null
)

Parameters

name  String
Name of the presentation to create
containerId  String
Id of the contains that will hold rendering of the presentation to create
pubTgtIds  String  (Optional)
Id of Publishing Target, that the to be created presentation will be published to
overrideId  String  (Optional)
Id deliberately specified, if not provided, this id will be automatically generated

Return Value

IPagePresentation
Created presentation
Exceptions
ExceptionCondition
ArgumentExceptionWhen there is default presentation for all Publishing Targets exists, or when another Presentation in the collection named the same
ArgumentNullExceptionWhen containerId parameter value is not specified
See Also