Export (0) Print
Expand All

IObjectCollection interface

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

Members

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

Methods

The IObjectCollection interface has these methods.

MethodDescription
AddFromArray

Adds the objects contained in an IObjectArray to the collection.

AddObject

Adds a single object to the collection.

Clear

Removes all objects from the collection.

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

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft