Data.DBXJSONReflect.TMarshalUnmarshalBase.RegisterJSONMarshalled
Delphi
procedure RegisterJSONMarshalled(clazz: TClass; const Field: string; Marshal: Boolean); overload;
C++
void __fastcall RegisterJSONMarshalled(System::TClass clazz, const System::UnicodeString Field, bool Marshal)/* overload */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
procedure function |
public | Data.DBXJSONReflect.pas Data.DBXJSONReflect.hpp |
Data.DBXJSONReflect | TMarshalUnmarshalBase |
Description
Recense si un champ ou un type doit être soumis au processus marshalling ou unmarshalling.
La méthode RegisterJSONMarshalled recense le champ de classe spécifié au cas où il devrait être soumis au marshalling ou au unmarshalling. Elle est prioritaire sur l'attribut JSONMarshalled, qui prend par défaut la valeur True
. Si Marshal
vaut False
, le champ/type est ignoré durant le processus marshalling ou unmarshalling.