IGlobalVariablesCollectionAddVariable Method (IGlobalVariable) Ingeniux CMS Content Store API

Adds a new global variable to the collection. This overload allows the global variable to be created and sets up all publishing target overrides first.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax

void AddVariable(
	IGlobalVariable variable
)

Parameters

variable
Type: Ingeniux.CMSIGlobalVariable
Global variable to add
Exceptions

ExceptionCondition
ArgumentExceptionWhen another variable exists with the same name.
See Also

Reference