IObjectCollection interface (objectarray.h)

Extends the IObjectArray interface by providing methods that enable clients to add and remove objects that support IUnknown in a collection.

Inheritance

The IObjectCollection interface inherits from IObjectArray. IObjectCollection also has these types of members:

Methods

The IObjectCollection interface has these methods.

 
IObjectCollection::AddFromArray

Adds the objects contained in an IObjectArray to the collection.
IObjectCollection::AddObject

Adds a single object to the collection.
IObjectCollection::Clear

Removes all objects from the collection. (IObjectCollection.Clear)
IObjectCollection::RemoveObjectAt

Removes a single, specified object from the collection.

Remarks

When to Use

Use this interface to interact with a collection of generic objects.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header objectarray.h (include Shobjidl.h)