IVsSolutionEvents2.OnQueryCloseSolution(Object, Int32) Method
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);
C++/WinRT
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
- 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.
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
cpp#
HRESULT IVsSolutionEvents2::OnQueryCloseSolution(
[in] IUnknown *pUnkReserved,
[in,out] BOOL *pfCancel
);
製品 | バージョン |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |