IRepositoryItem::get_Repository

Meta Data Services Programming

Meta Data Services Programming

IRepositoryItem::get_Repository

This method retrieves an IRepository interface pointer for the open repository instance or workspace through which this repository item was instantiated.

HRESULT get_Repository(IRepository   **ppIRepository);

Parameters

*ppIRepository

[out]
The IRepository interface pointer for the open repository instance or workspace.

Return Value

S_OK

The method completed successfully.

Error Values

This method failed to complete successfully.

Remarks

The returned IRepository interface pointer can refer to either a Repository object or a Workspace object. If it refers to a Workspace object, you are manipulating the item within the context of that workspace. If it refers to a Repository object, you are manipulating the item not within the context of a workspace, but within the context of a shared repository instance.

See Also

IRepositoryItem Interface

IRepository Interface

Repository Object

Workspace Object