Meta Data Services Programming
RepositoryObjectVersion ObjectVersions Collection
An ObjectVersions collection contains all of the RepositoryObjectVersion objects that are versions of the same repository object.
Syntax
Set variable = object.ObjectVersions(index)
The ObjectVersions collection syntax has the following parts.
Part | Description |
---|---|
variable | A variable declared as a VersionCol object. It receives a reference to the Versions-of-Object collection. |
object | An object expression that evaluates to a RepositoryObjectVersion object. |
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. The number of elements in the collection is specified by object.Properties.Count. For more information, see Selecting Items in a Collection. |
Remarks
Within the returned collection, the repository engine sequences the items in order of their creation, with the oldest object version first.
You cannot modify the collection. To add a new object version, use the CreateVersion method of the RepositoryObjectVersion object.