Click or drag to resize

ISchemaCommonAddField Method


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

[!:Ingeniux.CMS.ISchemaBasic.Fields]
[!:Ingeniux.CMS.ISchemaBasic.FieldsCount]
[!:Ingeniux.CMS.ISchemaBasic.Field]
[!:Ingeniux.CMS.ISchemaBasic.RemoveField]
[!:Ingeniux.CMS.ISchemaBasic.ClearFields]