IVsSolutionEvents.OnQueryCloseSolution(Object, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsSolutionEvents::OnQueryCloseSolution(
[in] IUnknown *pUnkReserved,
[in,out] BOOL *pfCancel
);