IRepositoryItem::get_Repository

See Also

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 not manipulating the item within the context of a workspace, but within the context of a shared Repository instance.