IVersionCol::get_Item

See Also

Retrieves the specified object version from the collection.

HRESULT get_Item(
VARIANT sItem
IRepositoryObjectVersion **ppIReposVersion
);

Parameters

sItem

[in]
Identifies the item to be retrieved from the collection. This parameter can be the index, the object identifier, or the object-version identifier of the item.

**ppIReposVersion

[out]
The IRepositoryObjectVersion interface pointer for the retrieved object versions.

Return Value

S_OK

The method completed successfully.

Error

Values

This method failed to complete successfully.

Remarks

There are many different kinds of version collection. The sItem parameter can be an object identifier for some version collections, but not for others. It can be an object identifier only for the Versions-of-Workspace collection, the Workspaces-of-Version collection, or the Checkouts-of-Workspace collection.