IContentItemVersionAddElementBefore Method
|
Adds one or more elements to the
Elements collection before a specified anchor element.
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax void AddElementBefore(
IElement anchor,
params IElement[] element
)
Sub AddElementBefore (
anchor As IElement,
ParamArray element As IElement()
)
void AddElementBefore(
IElement^ anchor,
... array<IElement^>^ element
)
abstract AddElementBefore :
anchor : IElement *
element : IElement[] -> unit
Parameters
- anchor
- Type: Ingeniux.CMSIElement
The anchor element before which to insert the element(s) - element
- Type: Ingeniux.CMSIElement
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 added the elements collection in front 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