IRepositoryItem::get_Repository

See Also

Retrieves an IRepository interface pointer for the open Microsoft® 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 not manipulating the item within the context of a workspace, but within the context of a shared repository instance.

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