System.Rtti.TValue.AsObject

From RAD Studio API Documentation
Jump to: navigation, search

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

Code Examples