Repository InternalIDToVersionID Method

Meta Data Services Programming

Meta Data Services Programming

Repository InternalIDToVersionID Method

This method translates an internal object-version identifier into a repository object-version identifier. The repository engine uses internal object-version identifiers to identify RepositoryObjectVersions.

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

variableobject.InternalIDToVersionID(intVersionId)

The InternalIDToVersionID method syntax has the following parts.

Part Description
variable Receives the object-version identifier
object The object that represents the open repository instance through which application code or a tool interacts with a repository
intVersionId The internal object-version identifier to be converted
Remarks

Object-version identifiers are globally unique, and are the same across repositories for the same object. Internal object-version identifiers are unique only within the scope of a single repository.

The translation performed by this method is accomplished without loading the object version in question. This enables database queries involving an object or relationship type identifier to be constructed without having to load the definition object.

See Also

Assigning Object Identifiers

Object Identifiers and Internal Identifiers

Repository Object

Repository ObjectIDToInternalID Method