IRepository2::get_Version

Meta Data Services Programming

Meta Data Services Programming

IRepository2::get_Version

Retrieves an IRepositoryObjectVersion interface pointer to the specified repository object version.

HRESULT get_Version(     VARIANT                               sVersionId,
    IRepositoryObjectVersion    **ppIReposVersion
    Long                                      **fFlags
);

Parts

sVersionId

[in]
The object-version identifier of the repository object version to be retrieved.

ppIReposVersion

[out]
A pointer to the IRepositoryObjectVersion interface pointer for the repository object.

fFlag

[out]
Long integer specifying the resolution strategy used to select a specific version of the repository object. fFlag can be one of these.

Constant Value Description
SPECIFIEDVERSION 1 A specific version explicitly selected
LATESTVERSION 2 The version most recently created
VERSIONINWORKSPACE 3 The version in the workspace
PINNEDVERSION 4 A version that is pinned

Return Value

S_OK

The method completed successfully.

Error Values

The method failed to complete successfully.

See Also

IRepository Interface

Resolution Strategy for Objects and Object Versions