Datasnap.Provider.GetStringProperty
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);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Datasnap.Provider.pas Datasnap.Provider.hpp |
Datasnap.Provider | Datasnap.Provider |
Description
Returns the property value (as String) of the given PropName
property.
The GetStringProperty method uses run-time type info (RTTI) in order to search for the given property and, if it exists, returns its value as a String. If the property given through PropName
cannot be found, then GetStringProperty returns an empty string.