Datasnap.Provider.GetStringProperty

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function GetStringProperty(Instance: TPersistent; const PropName: string): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall GetStringProperty(System::Classes::TPersistent* Instance, const System::UnicodeString PropName);

Propriétés

Type Visibilité  Source Unité  Parent
function public
Datasnap.Provider.pas
Datasnap.Provider.hpp
Datasnap.Provider Datasnap.Provider

Description

Renvoie, en tant que chaîne, la valeur de la propriété PropName donnée.

La méthode GetStringProperty utilise des informations de type à l'exécution (RTTI) afin de rechercher la classe de propriété donnée et, si elle existe, renvoie sa valeur en tant que chaîne. Si la propriété donnée via PropName est introuvable, GetStringProperty renvoie une chaîne vide.

Voir aussi