IVsSolutionEvents3::OnQueryUnloadProject Method (IVsHierarchy^, Int32)
Visual Studio 2015
Queries listening clients as to whether the project can be unloaded.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pRealHierarchy
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^
[in] Pointer to the IVsHierarchy interface of the project to be unloaded.
- pfCancel
-
Type:
System::Int32
[out] true if the client vetoed unloading the project. false if the client approved unloading the project.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsSolutionEvents3::OnQueryUnloadProject( [in] IVsHierarchy *pRealHierarchy, [in,out] BOOL *pfCancel );
Show: