Use this property to retrieve a particular Repository object version from the workspace. This is a read-only property.
Set variable = object.Version( versionId )
The Version property syntax has the following parts.
Part | Description |
variable | Declared as a RepositoryObjectVersion. Receives the Repository object version. |
object | The object that represents the workspace through which this program is interacting with the Repository. |
versionId | The object-version identifier for the Repository object to be retrieved. |
This member is exposed by the IRepository2 interface, a non-default interface for this object. For details on how to access a member of an interface that is not the default interface, see Accessing Automation Object Members.
This method returns an error if the requested version is not present in the workspace.