Skip to main content
Table of Contents

ITMSMCPCustomReadWriteIO.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: TMS.MCP.Persistence Declaring type: ITMSMCPCustomReadWriteIO

Syntax

TMS.MCP.Persistence.hppPascalC++
procedure CustomWriteProperty(AObject: TObject; APropertyName: string; APropertyKind: TTypeKind; AWriter: TTMSMCPJSONWriter; var ACanWrite: Boolean);
virtual void __fastcall CustomWriteProperty(System::TObject* AObject, System::UnicodeString APropertyName, System::Typinfo::TTypeKind APropertyKind, TTMSMCPJSONWriter* AWriter, bool &ACanWrite) = 0;

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.