Data.DBXJSONReflect.TJSONUnMarshal.TryCreateObject

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function TryCreateObject(Data: TObject; const Field: string; JsonObj: TJSONObject; out MarshalledObj: TObject): Boolean;

C++

bool __fastcall TryCreateObject(System::TObject* Data, const System::UnicodeString Field, System::Json::TJSONObject* JsonObj, /* out */ System::TObject* &MarshalledObj);

Propriétés

Type Visibilité  Source Unité  Parent
function protected
Data.DBXJSONReflect.pas
Data.DBXJSONReflect.hpp
Data.DBXJSONReflect TJSONUnMarshal


Description

Crée un objet basé sur une représentation JSON sérialisée.

La méthode TryCreateObject crée un objet basé sur une représentation JSON sérialisée. Le paramètre JsonObj spécifie l'instance d'objet JSON. Si l'objet ne peut pas être instancié en raison du nom du type de processus marshalling, l'utilisateur en est informé.

Voir aussi