IVsPackage2 接口

定义

使 VSPackage 的属性可用。

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(1)>]
type IVsPackage2 = interface
Public Interface IVsPackage2
属性

注解

当包必须阻止 (IDE) 的集成开发环境的关闭时,包应实现此接口。 尽管包应继续实现 QueryClose 以处理手动关闭,但会在强制关闭 IDE 期间查询此新属性,如通常在安装关键更新时发生。

实现可能不显示任何 UI。

方法

get_CanClose(Boolean)

指定是否可以关闭包。

适用于