Partager via


3.3 IEnumVARIANT Server Details

By implementing the IEnumVARIANT interface, a server provides a method for enumerating a collection of variants, including heterogeneous collections of objects. This interface SHOULD be implemented by COM servers that expose collections of objects.

An automation server SHOULD expose this functionality by implementing a _NewEnum method with a DISPID of DISPID_NEWENUM, as specified in section 2.2.32.1.

IEnumVARIANT MUST NOT impose restrictions on the semantics associated with the collection it manages.