VersionCol Remove Method

See Also

This method deletes an object version from a version collection.

Syntax

Call object.Remove(index)
Call
object.Remove(objectId)
Call
object.Remove(objectVersionId)

The Remove method syntax has the following parts.

Part Description
Object The version collection.
Index The index of the item to be removed from the collection.
ObjectID The object identifier for the object version or workspace to be removed from the collection. You can supply an objectID only for the Versions-of-Workspace collection, the Workspaces-of-Version collection, or the Checkouts-of-Workspace collection.
ObjectVersionID The object-version identifier for the item to be removed from the collection. You can supply an objectVersionID for any version collection.

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:

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.