Datasnap.Provider.GetObjectProperty

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Datasnap.Provider.pas
Datasnap.Provider.hpp
Unit: Datasnap.Provider
Parent: Datasnap.Provider

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);

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.

See Also