IRepository2::VersionIDToInternalID

See Also

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

HRESULT ObjectIDToInternalID(
VARIANT   sExtVersionID,
VARIANT   *psIntVersionID
);

Parameters

sExtVersionID
[in]
The object-version identifier for the Repository object.
psIntVersionID
[out]
A pointer to the internal 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 identifiers are globally unique, and are the same across repositories for the same object. Repository internal 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.

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.