RepositoryObjectVersion PredecessorVersions Collection

Meta Data Services Programming

Meta Data Services Programming

RepositoryObjectVersion PredecessorVersions Collection

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

Syntax

Set variable  = object.PredecessorVersions(index)

The PredecessorVersions collection syntax has the following parts.

Part Description
variable A variable declared as a VersionCol object. It receives a reference to the Predecessor-Versions collection.
object An object expression that evaluates to a RepositoryObjectVersion instance.
index An integer index that identifies which property in the collection to address. The valid range is from one to the total number of elements in the collection. For more information, see Selecting Items in a Collection.
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 engine sequences the items in order of their creation, with the oldest object version first. Objects are indicated by object identifier or object name.

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

See Also

Assigning Object Identifiers

Object Identifiers and Internal Identifiers

RepositoryObjectVersion Object

Version Graph