Package.QueryClose(Boolean) 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.
Called to ask the package if the shell can be closed.
protected:
virtual int QueryClose([Runtime::InteropServices::Out] bool % canClose);
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
Parameters
- canClose
- Boolean
Set canClose to false if you want to prevent the shell from closing
Returns
HRESULT
Remarks
By default this method returns canClose
as true
and S_OK.