The collection interfaces provide a convenient way for client code to iterate over various types of objects. All CAL collections are numbered beginning at 1, not 0.
Gets any errors encountered while initializing the collection
You can get a collection object from various methods, including the empty collection properties of IClearCase.
Adds an item to the end of the collection
Method
Sub Add(pItem As CCitem)
HRESULT Add(CCItem* pItem);
Member of: Collection interfaces
Gets the count of items in the collection
Read-only property
Property Count As Long
Gets any errors encountered while initializing the collection
Read-only property
Property InitErrors As String
_bstr_t GetInitErrors();
This property is applicable only to some collections. To enable this property for the ICCVersions, ICCViews, and ICCVOBs collections, set to False the FailIfErrors parameter of IClearCase::VOBs, IClearCase::Views, or ICCActivity::ChangeSet .
For the ICCBaselines, ICCComponents, ICCFolders, ICCProjects, ICCPolicies, and ICCStreams collections, there is no corresponding FailIfErrors parameter to set. Initialization of these collections always proceed in the face of errors.
Member of: Collection interfaces
Gets an item from the collection (using the 1-based index)
Read-only property
Property Item(Index As Long) As CCitem
CCitemPtr GetItem(long Index);
Removes an item from the collection (using the 1-based index)
Method
Sub Remove(Index As Long)
HRESULT Remove(long Index);
Member of: Collection interfaces