ISchemaContentReplace Method
|
Replace a
field at the specified location.
This is a combination of replace and content transfer. If the new field to add matches names in the current field list, transfer the content over to the replacement.
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax bool Replace(
int index,
ISchemaUnit contentToReplaceOld
)
Function Replace (
index As Integer,
contentToReplaceOld As ISchemaUnit
) As Boolean
bool Replace(
int index,
ISchemaUnit^ contentToReplaceOld
)
abstract Replace :
index : int *
contentToReplaceOld : ISchemaUnit -> bool
Parameters
- index
- Type: SystemInt32
Field location for replacement. - contentToReplaceOld
- Type: Ingeniux.CMSISchemaUnit
The content to use to replace the current field.
Return Value
Type:
BooleanTrue or false value indicating if content was successfully transferred.
Remarks Edge case is several fields with same name. In this case, we implement a state object to make sure repeated fields are taken by order.
See Also