IVsPackage2::get_CanClose Method (Boolean)
Visual Studio 2015
Specifies whether a package can be closed.
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
Parameters
- pfCanClose
-
Type:
System::Boolean
[out] Boolean value. true if the package does not have to block shutdown of the integrated development environment (IDE).
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT get_CanClose(
[out, retval] VARIANT_BOOL* pfCanClose
);
Show: