Add a
field at the specified location.
Namespace: Ingeniux.CMSAssembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntaxbool 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 Int32
- The location to add the new field
- contentToAdd ISchemaUnit
- The field to add
- forceAdd Boolean (Optional)
- If the field should be added regardless of if content exists from the old schema and without performing content transfer.
Return Value
BooleanFalse if content exists from old schema and content transfer occurred, true otherwise.
RemarksWhen 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