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
)
Function Add (
index As Integer,
contentToAdd As ISchemaUnit,
Optional forceAdd As Boolean = false
) As Boolean
bool Add(
int index,
ISchemaUnit^ contentToAdd,
bool forceAdd = false
)
abstract Add :
index : int *
contentToAdd : ISchemaUnit *
?forceAdd : bool
(* Defaults:
let _forceAdd = defaultArg forceAdd false
*)
-> bool
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:
BooleanFalse 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