This documentation is archived and is not being maintained.

IVsSolutionEvents.OnBeforeUnloadProject Method

Notifies listening clients that the project is about to be unloaded.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in

int OnBeforeUnloadProject (
	[InAttribute] IVsHierarchy pRealHierarchy,
	[InAttribute] IVsHierarchy pStubHierarchy
int OnBeforeUnloadProject (
	/** @attribute InAttribute() */ IVsHierarchy pRealHierarchy, 
	/** @attribute InAttribute() */ IVsHierarchy pStubHierarchy
function OnBeforeUnloadProject (
	pRealHierarchy : IVsHierarchy, 
	pStubHierarchy : IVsHierarchy
) : int



[in] Pointer to the IVsHierarchy interface of the project that will be unloaded.


[in] Pointer to the IVsHierarchy interface of the placeholder hierarchy for the project being unloaded.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsSolutionEvents::OnBeforeUnloadProject(
   [in] IVsHierarchy *pRealHierarchy,
   [in] IVsHierarchy *pStubHierarchy