IPageVersionAddElement Method Ingeniux CMS Content Store API

Adds one or multiple elements to the Elements collection.

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

void AddElement(
	params IElement[] element
)

Parameters

element
Type: Ingeniux.CMSIElement

[Missing <param name="element"/> documentation for "M:Ingeniux.CMS.IPageVersion.AddElement(Ingeniux.CMS.IElement[])"]

Exceptions

ExceptionCondition
ArgumentExceptionWhen 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 page 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

Reference