Sdílet prostřednictvím


IVsContainedLanguageStaticEventBinding Interface

Definition

Provides support for static event generation.

public interface class IVsContainedLanguageStaticEventBinding
public interface class IVsContainedLanguageStaticEventBinding
__interface IVsContainedLanguageStaticEventBinding
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("22FF7776-2C9A-48C4-809F-39E5184CC32D")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsContainedLanguageStaticEventBinding
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("22FF7776-2C9A-48C4-809F-39E5184CC32D")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsContainedLanguageStaticEventBinding
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("22FF7776-2C9A-48C4-809F-39E5184CC32D")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsContainedLanguageStaticEventBinding = interface
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("22FF7776-2C9A-48C4-809F-39E5184CC32D")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsContainedLanguageStaticEventBinding = interface
Public Interface IVsContainedLanguageStaticEventBinding
Attributes

Remarks

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 Implementers

Implement this interface in your contained language to support static event binding.

Notes to Callers

This interface can be obtained by calling the QueryInterface method on an IVsContainedLanguage object or by casting the IVsContainedLanguage object to the IVsContainedLanguageStaticEventBinding interface.

Methods

AddStaticEventBinding(String, String, String, String)

Binds a static event to the specified member.

EnsureStaticEventHandler(String, String, String, String, String, UInt32, String, String, TextSpan[])

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(String, String, Int32, IntPtr, IntPtr, IntPtr)

Returns a collection of events that are statically handled.

RemoveStaticEventBinding(String, String, String, String)

Removes the event binding from the specified member.

Applies to