ISchemaBasicAddField Method Ingeniux CMS Content Store API

Adds a new schema field to the collection, either at the specified position or at the end.

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

int AddField(
	ISchemaField field,
	int insertPosition = -1
)

Parameters

field
Type: Ingeniux.CMSISchemaField
New schema field to add
insertPosition (Optional)
Type: SystemInt32
Position at which to insert this field.. If missing, appends new field to end of collection.

Return Value

Type: Int32
The index of the added field. If insertPosition is not specified, it will be the position of last field.
See Also

Reference