Package.IVsPackage.QueryClose(Int32) Package.IVsPackage.QueryClose(Int32) Package.IVsPackage.QueryClose(Int32) Method

Definition

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);
Function QueryClose (ByRef close As Integer) As Integer Implements IVsPackage.QueryClose

Parameters

close
Int32 Int32 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.

Implements

Applies to