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.6.308
Syntax int AddField(
ISchemaField field,
int insertPosition = -1
)
Function AddField (
field As ISchemaField,
Optional insertPosition As Integer = -1
) As Integer
int AddField(
ISchemaField^ field,
int insertPosition = -1
)
abstract AddField :
field : ISchemaField *
?insertPosition : int
(* Defaults:
let _insertPosition = defaultArg insertPosition -1
*)
-> int
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:
Int32The 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]