System.Rtti.TValue.AsObject
Delphi
function AsObject: TObject;
C++
System::TObject* __fastcall AsObject();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Rtti.pas System.Rtti.hpp |
System.Rtti | TValue |
Description
Returns the stored object reference.
Call AsObject to obtain the stored object reference value. An exception is raised if the stored value is not an object reference.
See Also
- System.Rtti.TValue.IsType
- System.Rtti.TValue.IsObject
- System.Rtti.TValue.IsObjectInstance
- System.Rtti.TValue.AsType
Code Examples