AddInPersistenceManagerRegistrarAddFieldTypeBinding Method

Spotfire 14.3 API Reference
Adds a binding for the specified fieldName in the class or struct specified by definingType. The value of such fields are deserialized as the specified fieldType.

Namespace:  Spotfire.Dxp.Application.Extension
Assembly:  Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax

C#
public void AddFieldTypeBinding(
	Type definingType,
	string fieldName,
	Type fieldType
)

Parameters

definingType
Type: SystemType
Type of the class or struct that defines the field.
fieldName
Type: SystemString
Name of the field in the definingType.
fieldType
Type: SystemType
The Type that the value of the field shall deserialize as.
Remarks

Use this class to add support for backwards compatibility with respect to type changes of fields in a class or struct. Note that the new type of the field (specified by fieldType) must be able to deserialize itself from the serialized info stored by the old type of the field.
Version Information

Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also

Reference