System.Rtti.TRttiProperty.GetValue
Delphi
function GetValue(Instance: Pointer): TValue;
C++
TValue __fastcall GetValue(void * Instance);
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| function | public | System.Rtti.pas System.Rtti.hpp | System.Rtti | TRttiProperty | 
Description
Returns the value of the property in a given instance.
Call GetValue to obtain a TValue structure containing the value of the property in a given instance.
The AInstance parameter can either point to a class instance or to a record instance.
Note: Use the IsReadable to check whether reading a property's value is allowed. Trying to call GetValue on a nonreadable property results in an exception.