Skip to main content
Table of Contents

ITMSMCPCustomReadWriteIO.CustomReadProperty Method

Called before a property is read from JSON, allowing the implementor to supply a custom value or suppress the default read.

API unit family: TMS.MCP.Persistence Declaring type: ITMSMCPCustomReadWriteIO

Syntax

TMS.MCP.Persistence.hppPascalC++
procedure CustomReadProperty(AObject: TObject; APropertyName: string; APropertyKind: TTypeKind; AReader: TTMSMCPJSONReader; var ACanRead: Boolean);
virtual void __fastcall CustomReadProperty(System::TObject* AObject, System::UnicodeString APropertyName, System::Typinfo::TTypeKind APropertyKind, TTMSMCPJSONReader* AReader, bool &ACanRead) = 0;

Parameters

Name Description
AObject Object whose property is being read.
APropertyName Name of the property.
APropertyKind RTTI type kind of the property.
AReader JSON reader positioned at the property value.
ACanRead Set to False to skip the default property read.