IContentItemVersionAddElementsAfter Method
|
Adds a group of elements to the
Elements collection after the specified anchor element.
Namespace: Ingeniux.CMSAssembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntaxvoid AddElementsAfter(
IElement anchor,
IEnumerable<IElement> elements
)
Sub AddElementsAfter (
anchor As IElement,
elements As IEnumerable(Of IElement)
)
void AddElementsAfter(
IElement^ anchor,
IEnumerable<IElement^>^ elements
)
abstract AddElementsAfter :
anchor : IElement *
elements : IEnumerable<IElement> -> unit Parameters
- anchor IElement
- The anchor element after which the group of elements is inserted
- elements IEnumerableIElement
- 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 will be added the elements collection, behind of the anchor element
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