IVsSolutionEvents.OnBeforeUnloadProject(IVsHierarchy, IVsHierarchy) Method

Definition

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

C++/CX
public:
 int OnBeforeUnloadProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pRealHierarchy, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pStubHierarchy);

Parameters

pRealHierarchy
IVsHierarchy

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

pStubHierarchy
IVsHierarchy

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

Returns

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

Remarks

COM Signature

From vsshell.idl:

cpp#
HRESULT IVsSolutionEvents::OnBeforeUnloadProject(  
   [in] IVsHierarchy *pRealHierarchy,  
   [in] IVsHierarchy *pStubHierarchy  
);  

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022