Meta Data Services Programming

VersionCol Remove Method

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. The Remove method works for:

This method fails for:

See Also

Kinds of Version Collections

VersionCol Object