Freigeben über


IVsPackage2 Interface

Makes properties of a VSPackage available.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("0130701B-B0BE-474B-B4B6-35BABB2008F1")> _
Public Interface IVsPackage2
[InterfaceTypeAttribute()]
[GuidAttribute("0130701B-B0BE-474B-B4B6-35BABB2008F1")]
public interface IVsPackage2
[InterfaceTypeAttribute()]
[GuidAttribute(L"0130701B-B0BE-474B-B4B6-35BABB2008F1")]
public interface class IVsPackage2
[<InterfaceTypeAttribute()>]
[<GuidAttribute("0130701B-B0BE-474B-B4B6-35BABB2008F1")>]
type IVsPackage2 =  interface end
public interface IVsPackage2

The IVsPackage2 type exposes the following members.

Methods

  Name Description
Public method get_CanClose Specifies whether a package can be closed.

Top

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.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace