RepositoryObjectVersion PredecessorVersions Collection

See Also

A PredecessorVersions collection contains all of the RepositoryObjectVersion objects that are immediate predecessors of the current object version.

Syntax

Set variable = object.PredecessorVersions

The PredecessorVersions collection syntax has the following parts.

Part Description
variable A variable declared as a VersionCol object. Receives a reference to the Predecessor-Versions collection.
object An object expression that evaluates to a RepositoryObjectVersion object.

Remarks

This method returns only the immediate predecessors of the current object version.

If you invoke this method for the first version of an object, it returns an empty collection.

Within the returned collection, the Repository sequences the items in order of their creation, with the oldest object version first.

You cannot modify the collection. To enlarge an object's set of predecessor versions, use the MergeVersion method of the RepositoryObjectVersion object.