Share via


IVsSolutionEvents2.OnQueryCloseSolution(Object, Int32) Method

Definition

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

public:
 int OnQueryCloseSolution(System::Object ^ pUnkReserved, [Runtime::InteropServices::Out] int % pfCancel);
int OnQueryCloseSolution(winrt::Windows::Foundation::IInspectable const & pUnkReserved, [Runtime::InteropServices::Out] int & pfCancel);
public int OnQueryCloseSolution (object pUnkReserved, out int pfCancel);
abstract member OnQueryCloseSolution : obj * int -> int
Public Function OnQueryCloseSolution (pUnkReserved As Object, ByRef pfCancel As Integer) As Integer

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:

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

Applies to