Skip to content

IVarInstanceReference

[Properties (by Name)][Methods (by Name)][Events (by Name)]

Interface for variants that refer to an object

Declaration

Source position: variants.pp line 242

Type
  IVarInstanceReference = interface ['{5C176802-3F89-428D-850E-9F54F50C2293}']
    function GetInstance(const V: tvardata) : TObject;
  end
  ;

Description

IVarInstanceReference is used to get the instance of an object from a custom variant. It has only one method, GetInstance which is used to retrieve the instance of a variant that contains an object.

The TPublishableVariantType descendent of TInvokeableVariantType uses this interface to implement reading published properties from the instance.

Members

Member Type Visibility Description
GetInstance Method default Return the object instance referenced by the custom variant

Inheritance

Class Description
IVarInstanceReference Interface for variants that refer to an object

See also

Name Description
IVarInstanceReference.GetInstance Return the object instance referenced by the custom variant