IVsPackage2 Interface

Definition

Makes properties of a VSPackage available.

public interface class IVsPackage2
public interface class IVsPackage2
__interface IVsPackage2
[System.Runtime.InteropServices.Guid("0130701B-B0BE-474B-B4B6-35BABB2008F1")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsPackage2
[System.Runtime.InteropServices.Guid("0130701B-B0BE-474B-B4B6-35BABB2008F1")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsPackage2
[<System.Runtime.InteropServices.Guid("0130701B-B0BE-474B-B4B6-35BABB2008F1")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsPackage2 = interface
[<System.Runtime.InteropServices.Guid("0130701B-B0BE-474B-B4B6-35BABB2008F1")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsPackage2 = interface
Public Interface IVsPackage2
Attributes

Remarks

Packages should implement this interface when they must block shutdown of the integrated development environment (IDE). Although packages should continue to implement QueryClose to handle manual shutdowns, this new property will be queried during a forced shutdown of the IDE, such as that which typically happens when critical updates are installed.

The implementation may not show any UI.

Methods

get_CanClose(Boolean)

Specifies whether a package can be closed.

Applies to