RepositoryObjectVersion SuccessorVersions Collection
A SuccessorVersions collection contains all of the RepositoryObjectVersion objects that are immediate successors of the current object version.
Syntax
Set variable = object.SuccessorVersions(index)
The SuccessorVersions collection syntax has the following parts.
Part | Description |
---|---|
variable | A variable declared as a VersionCol object. It receives a reference to the SuccessorVersions 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 successors of the current object version. If the current object version has no successors, this method 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 successor versions of an object, use the CreateVersion method of the RepositoryObjectVersion object.