IContentItemVersionAddElement Method
|
Adds one or multiple elements to the
Elements collection.
Namespace: Ingeniux.CMSAssembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntaxvoid AddElement(
params IElement[] element
)
Sub AddElement (
ParamArray element As IElement()
)
void AddElement(
... array<IElement^>^ element
)
abstract AddElement :
element : IElement[] -> unit Parameters
- element IElement
- Elements to be added to the collection
Exceptions| Exception | Condition |
|---|
| ArgumentException | When any element to add has the same unique ID as an existing element. |
RemarksThe elements added to the collection become direct children of the version.
The new child elements are appended to the elements collection.
Any null items in the collection are ignored.
If an element to be added has the same ID as an existing element, an error is thrown.
See Also