IVsSolutionEvents2::OnQueryCloseProject Method (IVsHierarchy^, Int32, Int32)
Visual Studio 2015
Queries listening clients as to whether the project can be closed.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pHierarchy
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^
[in] Pointer to the IVsHierarchy interface of the project to be closed.
- fRemoving
-
Type:
System::Int32
[in] true if the project is being removed from the solution before the solution is closed. false if the project is being removed from the solution while the solution is being closed.
- pfCancel
-
Type:
System::Int32
[out] true if the client vetoed the closing of the project. false if the client approved the closing of 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 IVsSolutionEvents2::OnQueryCloseProject( [in] IVsHierarchy *pHierarchy, [in] BOOL fRemoving, [in,out] BOOL *pfCancel );
Show: