System.JSON.TJSONString.AsTValue

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function AsTValue(ATypeInfo: PTypeInfo; var AValue: TValue): Boolean; override;

C++

virtual bool __fastcall AsTValue(System::Typinfo::PTypeInfo ATypeInfo, System::Rtti::TValue &AValue);

Propriétés

Type Visibilité  Source Unité  Parent
function protected
System.JSON.pas
System.JSON.hpp
System.JSON TJSONString


Description

Remplit l'instance AValue de TValue avec cette valeur chaîne JSON encodée selon le type spécifié. Elle renvoie True si le type spécifié est pris en charge ou False dans le cas contraire.

Les types TTypeData pris en charge sont :

Types pris en charge Description

tkChar
tkWChar
tkEnumeration
tkFloat
tkInt64
tkInteger
tkLString
tkString
tkUString
tkWString

Définit les types utilisés pour l'encodage d'une chaîne remplissant AValue.
Notez que tkChar n'est pas pris en charge pour les compilateurs NEXTGEN (mobiles).

tkClass

Remplit AValue tel qu'il est.

Voir aussi