提供对静态事件生成支持。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)
语法
声明
<GuidAttribute("22FF7776-2C9A-48C4-809F-39E5184CC32D")> _
<InterfaceTypeAttribute()> _
Public Interface IVsContainedLanguageStaticEventBinding
[GuidAttribute("22FF7776-2C9A-48C4-809F-39E5184CC32D")]
[InterfaceTypeAttribute()]
public interface IVsContainedLanguageStaticEventBinding
[GuidAttribute(L"22FF7776-2C9A-48C4-809F-39E5184CC32D")]
[InterfaceTypeAttribute()]
public interface class IVsContainedLanguageStaticEventBinding
[<GuidAttribute("22FF7776-2C9A-48C4-809F-39E5184CC32D")>]
[<InterfaceTypeAttribute()>]
type IVsContainedLanguageStaticEventBinding = interface end
public interface IVsContainedLanguageStaticEventBinding
IVsContainedLanguageStaticEventBinding 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() |
AddStaticEventBinding | 绑定静态事件对指定的成员。 |
![]() |
EnsureStaticEventHandler | 创建一个事件处理程序将类对象类型和实例上下文、名称,事件的名称和事件处理程序 (单值) 的名称。 |
![]() |
GetStaticEventBindingsForObject | 返回静态已处理事件的集合。 |
![]() |
RemoveStaticEventBinding | 从指定的成员移除将该事件。 |
页首
备注
静态事件绑定意味着不是实例化的类的部分并跨文件将一直可用在项目的事件处理程序。
对实现者的说明
实现在这种包含语言的此接口支持静态事件绑定。
对调用者的说明
此接口可以通过调用获取在 IVsContainedLanguage 对象的 QueryInterface 方法或通过转换为 IVsContainedLanguageStaticEventBinding 接口的 IVsContainedLanguage 对象。