IVsSolutionEvents2.OnQueryCloseSolution(Object, Int32) Method

Definition

Queries listening clients as to whether the solution can be closed.

C++/WinRT
int OnQueryCloseSolution(winrt::Windows::Foundation::IInspectable const & pUnkReserved, [Runtime::InteropServices::Out] int & pfCancel);

Parameters

pUnkReserved
Object

[in] Reserved for future use.

pfCancel
Int32

[out] true if the client vetoed closing the solution. false if the client approved closing the solution.

Returns

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

Implements

Remarks

COM Signature

From vsshell.idl:

cpp#
HRESULT IVsSolutionEvents2::OnQueryCloseSolution(  
   [in] IUnknown *pUnkReserved,  
   [in,out] BOOL *pfCancel  
);  

Applies to

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022