Share via


IComponentTypes::get__NewEnum Method

The get__NewEnum enumeration method supports For...Each loops in Automation clients.

Syntax

HRESULT get__NewEnum(
  [out]  IEnumVARIANT **ppNewEnum
);

Parameters

  • ppNewEnum [out]
    Address of an interface pointer to an IEnumVARIANT object that will receive the new collection.

Return Value

Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.

Remarks

This method is provided to enable scripting and Visual Basic applications to iterate through the collection in a For...Each loop. C++ applications should use the IComponentTypes::EnumComponentTypes method.

The returned IEnumVARIANT interface is not thread safe, because it is intended primarily for use by Automation clients. Clients should not call methods on the interface from more than one thread.

Requirements

Header Declared in Dshow.h.
DLL Requires Quartz.dll.

See Also

IComponentTypes Interface

Send comments about this topic to Microsoft

Build date: 12/4/2008