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.308
Syntax
bool Add(
	int index,
	ISchemaUnit contentToAdd,
	bool forceAdd = false
)

Parameters

index
Type: SystemInt32
The location to add the new field
contentToAdd
Type: Ingeniux.CMSISchemaUnit
The field to add
forceAdd (Optional)
Type: SystemBoolean
If the field should be added regardless of if content exists from the old schema and without performing content transfer.

Return Value

Type: 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