Provides a method for enumerating a collection of variants, including heterogeneous collections of objects and intrinsic types. Callers of this interface do not need to know the specific type (or types) of the elements in the collection.
The IEnumVARIANT interface inherits from the IUnknown interface. IEnumVARIANT also has these types of members:
The IEnumVARIANT interface has these methods.
Creates a copy of the current state of enumeration.
Retrieves the specified items in the enumeration sequence.
Resets the enumeration sequence to the beginning.
Attempts to skip over the next celt elements in the enumeration sequence.
To see how to implement a collection of objects using IEnumVARIANT, refer to the file Enumvar.cpp in the Lines sample code.