Table of Contents

TTMSFNCPersistence.OnCustomWriteProperty Event

Fires before a property is written during serialization, allowing the handler to override the output.

API unit family: TMSFNCPersistence Declaring type: TTMSFNCPersistence

Syntax

class OnCustomWriteProperty: TTMSFNCWriterCustomWritePropertyEvent;

Parameters

Name Description
AObject The object being serialized.
APropertyName Name of the property about to be written.
APropertyKind RTTI type kind of the property.
AWriter JSON writer; call its write methods to emit a custom value.
ACanWrite Set to False to skip writing this property.