IVersionCol::Remove

See Also

Removes an object version from the collection.

HRESULT Remove(
VARIANT sItem
);

Parameters

sItem

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

Return Value

S_OK

The method completed successfully.

Error

Values

This method failed to complete successfully.

Remarks

There are many different kinds of Object-Version collections. You can apply this method to some of them, but not to others. This method works for:

This method fails for:

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.