System.Variants.IVarInvokeable.GetProperty

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetProperty(var Dest: TVarData; const V: TVarData;
const Name: string): Boolean;

C++

virtual bool __fastcall GetProperty(TVarData &Dest, const TVarData &V, const System::UnicodeString Name) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
System.Variants.pas
System.Variants.hpp
System.Variants IVarInvokeable

Description

Returns the value for any property supported by a custom Variant type.

Implement GetProperty to provide the implementation for reading properties. When the application tries to read a property of a Variant (Delphi) or calls the Variant's Exec method (C++), a call is automatically generated to GetProperty.

Dest is a TVarData record that receives the value of the read property. V is the TVarData record from the Variant instance that was used to access the property. Name is the name of the property being read.

GetProperty returns True if it handles the property, False if it does not implement the specified property.

See Also