The ObjectVersions collection contains all of the RepositoryObjectVersion objects that are versions of the same repository object.
Set variable = object.ObjectVersions
The ObjectVersions collection syntax has the following parts.
Part | Description |
Variable | A variable declared as a VersionCol object. Receives a reference to the Versions-of-Object collection. |
Object | An object expression that evaluates to a Workspace object. |
Remember that each Workspace object has exactly one version (because you cannot invoke the CreateVersion method on a workspace). Thus, this collection always contains exactly one item.