Click or drag to resize

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
)

Parameters

index
Type: SystemInt32
Field location for replacement.
contentToReplaceOld
Type: Ingeniux.CMSISchemaUnit
The content to use to replace the current field.

Return Value

Type: Boolean
True 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