Export (0) Print
Expand All

IEnumUnknown interface

Enumerates objects with the IUnknown interface. It can be used to enumerate through the objects in a component containing multiple objects.

When to implement

You can implement this whenever you want a caller to be able to enumerate the objects contained in another object. You get a pointer to IEnumUnknown through a call to IOleContainer::EnumObjects.

When to use

Call the methods of IEnumUnknown to enumerate the objects in a compound document, when you get a pointer to the interface on the enumerator through a call to IOleContainer::EnumObjects.

Members

The IEnumUnknown interface inherits from the IUnknown interface. IEnumUnknown also has these types of members:

Methods

The IEnumUnknown interface has these methods.

MethodDescription
Clone

Creates a new enumerator that contains the same enumeration state as the current one.

Next

Retrieves the specified number of items in the enumeration sequence.

Reset

Resets the enumeration sequence to the beginning.

Skip

Skips over the specified number of items in the enumeration sequence.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IEnumUnknown is defined as 00000100-0000-0000-C000-000000000046

See also

IOleContainer

 

 

Community Additions

ADD
Show:
© 2014 Microsoft