IVersionCol Interface
See Also
A version collection is a collection of object versions. There are several different version collections you can establish:
- 
The set of all versions of an object. (See the Versions-of-Object collection.)
 
 
- 
The predecessors of an object version. (See the Predecessor-Versions collection.)
 
 
- 
The successors of an object version. (See the Successor-Versions collection.)
 
 
- 
The set of versions of a particular target object that are related to a particular source object version. (See the Target-Versions collection.)
 
 
- 
The set of object versions present in a workspace. (See the Versions-of-Workspace collection.)
 
 
- 
The set of workspaces in which a particular item is present. (See the Workspaces-of-Version collection.)
 
 
- 
The set of object versions checked out to a workspace. (See the Checkouts-of-Workspace collection.)
When to Use
Use the IVersionCol interface to manage the contents of a workspace, to manage the target object versions of a versioned relationship, to navigate an object’s version graph, or to manipulate all the versions of a particular object.
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. | 
| IVersionCol Method | Description | 
| Add | Adds an object version to the collection. | 
| get_Count | Returns the number of items in the collection. | 
| get_Item | Returns an interface pointer to an item of the collection. | 
| _NewEnum | Retrieves an enumeration interface pointer for the collection. | 
| Refresh | Refreshes the cached image of the collection. | 
| Remove | Removes an object version from the collection. |