Package.IVsPackage.QueryClose(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.
Called to ask the VSPackage if the Visual Studio shell can be closed.
virtual int Microsoft.VisualStudio.Shell.Interop.IVsPackage.QueryClose([Runtime::InteropServices::Out] int % close) = Microsoft::VisualStudio::Shell::Interop::IVsPackage::QueryClose;
int IVsPackage.QueryClose (out int close);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsPackage.QueryClose : int -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsPackage.QueryClose : int -> int
Function QueryClose (ByRef close As Integer) As Integer Implements IVsPackage.QueryClose
Parameters
- close
- Int32
Set canClose
to false
if you want to prevent the shell from closing
Returns
If the method succeeds, it returns S_OK, otherwise it returns an error code.