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.5.94
Syntax
IPagePresentation AddDefaultPresentation(
	string name,
	string containerId,
	string[] pubTgtIds = null,
	string overrideId = null
)

Parameters

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

Return Value

Type: 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