IContentItemVersionAddElementsFirst Method
|
Adds a group of elements to the front of the
Elements collection.
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax void AddElementsFirst(
IEnumerable<IElement> elements
)
Sub AddElementsFirst (
elements As IEnumerable(Of IElement)
)
void AddElementsFirst(
IEnumerable<IElement^>^ elements
)
abstract AddElementsFirst :
elements : IEnumerable<IElement> -> unit
Parameters
- elements
- Type: System.Collections.GenericIEnumerableIElement
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. |
Remarks The elements added to the collection become direct children of the version.
The new child elements are prepended to the elements collection.
any null items in the collection are ignored.
If any element to add has the same unique ID as an existing element, an error is thrown.
See Also