Repository Version Property

Meta Data Services Programming

Meta Data Services Programming

Repository Version Property

This property retrieves a particular instance of a RepositoryObjectVersion from the repository. This is a read-only property.

This property is not attached to the default interface for the repository Automation object; it is attached to the IRepository2 interface. For more information about accessing a member of an interface that is not the default interface, see Accessing Automation Object Members.

Syntax

Set variable  =  object.Version(versionId, integer)

The Version property syntax has the following parts.

Part Description
variable Declared as a RepositoryObjectVersion. It receives the repository object version.
object The object that represents the open repository instance through which application code or a tool interacts with a repository.
versionId The object-version identifier for the repository object to be retrieved.
integer An integer indicates the strategy used by the repository engine to select a specific object.
1=SPECIFIEDVERSION. This value appears when you explicitly select a specific object version.
2=LATESTVERSION. This value appears when the most recently created version is selected.
3=VERSIONINWORKSPACE. This value appears when the object version in the workspace is selected.
4=PINNEDVERSION. This value appears when the pinned target object version of the relationship that you are currently navigating is selected.

See Also

Repository Object

RepositoryObjectVersion Object