Object collections can be retrieved at the Automation level and the COM level.
To retrieve a collection of objects using Automation interfaces
Note All collections in Microsoft® Repository are attached to Repository objects as members.
For example, the following Microsoft Visual Basic® code retrieves a collection of bugs (a target object collection) discovered by a particular person into the variable called BugCollection.
DIM BugCollection As ITargetObjectCol
DIM Person As RepositoryObject
...
REM Retrieve the source object into the Person variable
...
Set BugCollection = Person.bugs
In this example, BugCollection(1) would refer to the first object in the collection.
To retrieve a collection of objects using COM interfaces
The Invoke method will pass an IDispatch interface pointer for the collection back to you.