Skip to content

IVarInstanceReference

Interface for variants that refer to an object.

Declaration

Source position: variants.pp line 249

type

  IVarInstanceReference = interface
  ['{5C176802-3F89-428D-850E-9F54F50C2293}']
    function GetInstance : 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.

Methods

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

See also

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