Click or drag to resize

ISchemaContentAdd Method


Add a field at the specified location.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
bool Add(
	int index,
	ISchemaUnit contentToAdd,
	bool forceAdd = false
)

Parameters

index  Int32
The location to add the new field
contentToAdd  ISchemaUnit
The field to add
forceAdd  Boolean  (Optional)
If the field should be added regardless of if content exists from the old schema and without performing content transfer.

Return Value

Boolean
False if content exists from old schema and content transfer occurred, true otherwise.
Remarks
When the provided index is less then 0 or greater than Count, add to the end of the fields, otherwise insert in front of the given item.
See Also