IRepository2::InternalIDToVersionID

Meta Data Services Programming

Meta Data Services Programming

IRepository2::InternalIDToVersionID

This method translates an internal object-version identifier into an object-version identifier. Internal object-version identifiers are used by the repository engine to identify repository object versions.

HRESULT InternalIDToObjectID(     VARIANT   sIntVersionID,
    VARIANT   *psExtVersionID
);

Parts

sIntVersionID

[in]
The internal object-version identifier for the repository object.

psExtVersionID

[out]
A pointer to the object-version identifier for the repository object.

Return Value

S_OK

The method completed successfully.

Error Values

The method failed to complete successfully.

Remarks

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

The translation performed by this method is performed 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

IRepository::ObjectIDToInternalID

IRepository Interface