Udostępnij za pośrednictwem


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);
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.

Implements

Applies to