System.TypInfo.TPublishableVariantType.GetInstance
Delphi
function GetInstance(const V: TVarData): TObject; virtual; abstract;
C++
virtual System::TObject* __fastcall GetInstance(const TVarData &V) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.TypInfo.pas System.TypInfo.hpp |
System.TypInfo | TPublishableVariantType |
Description
Returns the object instance that represents the data from a Variant of the custom type.
Override GetInstance to return the object that represents the data from a Variant of the custom Type. TPublishableVariantType implements all the published properties of that object so that they are published properties of the Variant.
V is the data from a Variant of the custom type. This data must include a reference to an object that represents the Variant's data, and which GetInstance returns.
GetInstance is abstract or, in C++ terminology, pure virtual in TPublishableVariantType, which means it has no implementation. Descendant classes override this method to enable Variants to publish the properties from the object that implements their data.