IObjectCol Interface
See Also
An object collection is a set of Microsoft® Repository objects that can be enumerated. Two kinds of object collections are supported by Repository:
- The collection of destination objects that correspond to the relationships in a relationship collection. Use the ITargetObjectCol interface to manage this kind of collection.
- 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:
- Get a count of the number of objects in the collection.
- Enumerate the objects in the collection.
- Retrieve an IRepositoryObject pointer to one of the objects in the collection.
- Refresh the cached image of the object collection.
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. |
(c) 1988-1998 Microsoft Corporation. All Rights Reserved.