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.
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.