API:System.TypInfo.TPublishableVariantType.GetProperty

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
function public
System.TypInfo.pas
System.TypInfo.hpp
System.TypInfo TPublishableVariantType

Description

Returns the value for any property this Variant type supports.

System.TypInfo.TPublishableVariantType.GetProperty inherits from System.Variants.TInvokeableVariantType.GetProperty. All content below this line refers to System.Variants.TInvokeableVariantType.GetProperty.

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.

See Also