Skip to main content
Table of Contents

ITMSFNCCustomReadWriteIO.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: TMSFNCPersistence Declaring type: ITMSFNCCustomReadWriteIO

Syntax

FMX.TMSFNCPersistence.hppPascalC++
procedure CustomReadProperty(AObject: TObject; APropertyName: string; APropertyKind: TTypeKind; AReader: TTMSFNCJSONReader; var ACanRead: Boolean);
virtual void __fastcall CustomReadProperty(System::TObject* AObject, System::UnicodeString APropertyName, System::Typinfo::TTypeKind APropertyKind, TTMSFNCJSONReader* 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.