Export (0) Print
Expand All

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 Microsoft.VisualStudio.Shell.Interop.dll)

int OnBeforeUnloadProject(
	IVsHierarchy pRealHierarchy,
	IVsHierarchy pStubHierarchy
)

Parameters

pRealHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
[in] Pointer to the IVsHierarchy interface of the project that will be unloaded.
pStubHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
[in] Pointer to the IVsHierarchy interface of the placeholder hierarchy for the project being unloaded.

Return Value

Type: System.Int32
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
);

Community Additions

ADD
Show:
© 2014 Microsoft