IObjectCol Interface

See Also

An object collection is a set of Repository objects that can be enumerated. Two kinds of object collections are supported by the Repository:

  1. The collection of destination objects that correspond to the relationships in a relationship collection. Use the ITargetObjectCol interface to manage this kind of collection.

  2. The collection of all objects in the Repository that conform to a particular class or expose a particular interface.

When to Use

Use the IObjectCol interface to enumerate the collection of Repository objects that conform to a particular class or expose a particular interface. With this interface, you can:

Methods

Iunknown Method Description
QueryInterface Returns pointers to supported interfaces.
AddRef Increments the reference count.
Release Decrements the reference count.

Idispatch Method Description
GetIDsOfNames Maps a single member and a set of argument names to a corresponding set of dispatch identifiers.
GetTypeInfo Retrieves a type information object, which can be used to get the type information for an interface.
GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1).
Invoke Provides access to properties and methods exposed by an Automation object.

IobjectCol Method Description
get_Count Retrieves a count of the number of objects in the collection.
get_Item Retrieves an IRepositoryObject interface pointer for the specified collection object.
_NewEnum Retrieves an enumeration interface pointer for the collection.
Refresh Refreshes the cached image of the object collection.