IEnumVARIANT Interface

Implemented by
Used by
Header filename
Applications that
expose collections
of objects.
Applications that
access collections
of objects.
OLEAUTO.H (32-bit systems)
DISPATCH.H (16-bit systems)

The IEnumVARIANT interface provides a method for enumerating a collection of variants, including heterogeneous collections of objects and intrinsic types. Callers of this interface need not know the specific type, or types, of the elements in the collection.

The following is the definition that results from expanding the parameterized type IEnumVARIANT:

interface IEnumVARIANT : IUnknown {

  • irtual HRESULT Next(unsigned long celt,
    VARIANT FAR* rgvar,
    unsigned long FAR* pceltFetched) = 0;

  • irtual HRESULT Skip(unsigned long celt) = 0;

  • irtual HRESULT Reset() = 0;

  • irtual HRESULT Clone(IEnumVARIANT FAR* FAR* ppenum) = 0;


See the sample file ENUMVAR.CPP in the Lines sample to see how to implement a collection of objects using IEnumVARIANT.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database