Partager via


Package.QueryClose(Boolean) Method

Definition

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.

Applies to