Skip to main content
Table of Contents

TTMSMCPWriter.OnCustomWriteProperty Event

Fires before each property is written, allowing the handler to override or skip it.

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

Syntax

TMS.MCP.Persistence.hppPascalC++
OnCustomWriteProperty: TTMSMCPWriterCustomWritePropertyEvent;
__property TTMSMCPWriterCustomWritePropertyEvent OnCustomWriteProperty = {read=FOnCustomWriteProperty, write=FOnCustomWriteProperty};

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.