Package.QueryClose(Boolean) 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.
Called to ask the package if the shell can be closed.
protected:
virtual int QueryClose([Runtime::InteropServices::Out] bool % canClose);
C++/WinRT
virtual int QueryClose([Runtime::InteropServices::Out] bool & canClose);
protected virtual int QueryClose(out bool canClose);
abstract member QueryClose : bool -> int
override this.QueryClose : bool -> int
Protected Overridable Function QueryClose (ByRef canClose As Boolean) As Integer
- canClose
- Boolean
Set canClose to false if you want to prevent the shell from closing
HRESULT
By default this method returns canClose
as true
and S_OK.
Proizvod | Verzije |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |