ITMSFNCCustomReadWriteIO.CustomWriteProperty Method
Called before a property is written to JSON, allowing the implementor to write a custom value or suppress the default write.
API unit family: TMSFNCPersistence
Declaring type: ITMSFNCCustomReadWriteIO
Syntax
procedure CustomWriteProperty(AObject: TObject; APropertyName: string; APropertyKind: TTypeKind; AWriter: TTMSFNCJSONWriter; var ACanWrite: Boolean);
Parameters
| Name | Description |
|---|---|
AObject |
Object whose property is being written. |
APropertyName |
Name of the property. |
APropertyKind |
RTTI type kind of the property. |
AWriter |
JSON writer to use for emitting the custom value. |
ACanWrite |
Set to False to skip the default property write. |