IVsSolutionEvents2::OnQueryCloseSolution Method (Object^, Int32)
Visual Studio 2015
Queries listening clients as to whether the solution can be closed.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pUnkReserved
-
Type:
System::Object^
[in] Reserved for future use.
- pfCancel
-
Type:
System::Int32
[out] true if the client vetoed closing the solution. false if the client approved closing the solution.
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::OnQueryCloseSolution( [in] IUnknown *pUnkReserved, [in,out] BOOL *pfCancel );
Show: