Datasnap.Provider.GetObjectProperty
Delphi
function GetObjectProperty(Instance: TPersistent; const PropName: string): TObject;
C++
extern DELPHI_PACKAGE System::TObject* __fastcall GetObjectProperty(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 class instance (as TObject) of the given PropName
property.
The GetObjectProperty method uses run-time type info (RTTI) in order to search for the given property class and, if it exists, returns its instance. If the property given through PropName
cannot be found then GetObjectProperty returns nil.