IVsContainedLanguageStaticEventBinding Interface
Visual Studio 2010
Provides support for static event generation.
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
The IVsContainedLanguageStaticEventBinding type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AddStaticEventBinding | Binds a static event to the specified member. |
![]() | EnsureStaticEventHandler | Creates an event handler given the class context, name of the object type and instance, the name of the event and the (unique) name of the event handler. |
![]() | GetStaticEventBindingsForObject | Returns a collection of events that are statically handled. |
![]() | RemoveStaticEventBinding | Removes the event binding from the specified member. |
Static event binding means an event handler that is not part of an instantiated class and is available all the time across files in the project.
Notes to ImplementersImplement this interface in your contained language to support static event binding.
Notes to CallersThis interface can be obtained by calling the QueryInterface method on an IVsContainedLanguage object or by casting the IVsContainedLanguage object to the IVsContainedLanguageStaticEventBinding interface.
