System.Variants.TInvokeableVariantType.GetProperty
Delphi
function GetProperty(var Dest: TVarData; const V: TVarData;
const Name: string): Boolean; virtual;
C++
virtual bool __fastcall GetProperty(TVarData &Dest, const TVarData &V, const System::UnicodeString Name);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Variants.pas System.Variants.hpp |
System.Variants | TInvokeableVariantType |
Description
Returns the value for any property this Variant type supports.
Override GetProperty to provide the read implementations for properties of instances of the Variant. When the application reads a Variant property (Delphi) or calls the Variant's Exec method (C++) a call is automatically generated to GetProperty that allows the TInvokeableVariant descendant to implement the call.
Dest
is a TVarData record that receives the property value.
V
is the TVarData record from the Variant instance whose property is being read.
Name
is the name of the property.
GetProperty returns true if it returns a property value, false if it does not implement the specified property.
As implemented in TInvokeableVariant, GetProperty always returns false, because it does not implement any properties.