Meta Data Services Programming

IObjectCol Interface

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

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.

See Also

IRepositoryObject Interface

ITargetObjectCol Interface

ObjectCol Class