表示接收事件通知和代码段相关的连接点。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)
语法
声明
<InterfaceTypeAttribute()> _
<GuidAttribute("08107089-905F-47AB-989F-E365C5087402")> _
Public Interface IVsExpansionEvents
[InterfaceTypeAttribute()]
[GuidAttribute("08107089-905F-47AB-989F-E365C5087402")]
public interface IVsExpansionEvents
[InterfaceTypeAttribute()]
[GuidAttribute(L"08107089-905F-47AB-989F-E365C5087402")]
public interface class IVsExpansionEvents
[<InterfaceTypeAttribute()>]
[<GuidAttribute("08107089-905F-47AB-989F-E365C5087402")>]
type IVsExpansionEvents = interface end
public interface IVsExpansionEvents
IVsExpansionEvents 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() |
OnAfterSnippetsKeyBindingChange | 调用,当在与插入代码段的键绑定更改。 |
![]() |
OnAfterSnippetsUpdate | 调用时,都包含代码段后更新的文件夹以及该文件夹中的代码段编写。 |
页首
备注
从 IVsExpansionManager 接口的 IConnectionPointContainer 接口,然后对 IConnectionPointContainer 接口的 FindConnectionPoint 方法与 IVsExpansionEvents 接口的接口 ID 获取 IConnectionPoint 对象。 调用 IConnectionPoint 对象的建议方法。 IVsExpansionEvents 接口开始接收代码段相关的事件。
对实现者的说明
此接口所需接收事件通知与代码段的所有对象实现。
对调用者的说明
此接口传递给从在 IConnectionPointContainer 接口的 FindConnectionPoint 方法返回的 IConnectionPoint 对象的建议方法。