EventBindingService Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A default implementation of the IEventBindingService interface.
public ref class EventBindingService abstract : System::ComponentModel::Design::IEventBindingService
public abstract class EventBindingService : System.ComponentModel.Design.IEventBindingService
type EventBindingService = class
interface IEventBindingService
Public MustInherit Class EventBindingService
Implements IEventBindingService
- Inheritance
-
EventBindingService
- Implements
Remarks
By providing a service for registering event handlers for component events, EventBindingService provides a way to link an event handler with a component event from designer code.
Constructors
| Name | Description |
|---|---|
| EventBindingService(IServiceProvider) |
Initializes a new instance of the EventBindingService class. |
Methods
| Name | Description |
|---|---|
| CreateUniqueMethodName(IComponent, EventDescriptor) |
Creates a unique method name. |
| FreeMethod(IComponent, EventDescriptor, String) |
Provides a notification that a particular method is no longer being used by an event handler. |
| GetCompatibleMethods(EventDescriptor) |
Returns a collection of names of compatible methods. |
| GetService(Type) |
Gets the requested service from the service provider. |
| ShowCode() |
Displays user code. |
| ShowCode(IComponent, EventDescriptor, String) |
Displays the user code for the specified method. |
| ShowCode(Int32) |
Displays the user code at the given line number. |
| UseMethod(IComponent, EventDescriptor, String) |
Provides a notification that a particular method is being used by an event handler. |
| ValidateMethodName(String) |
Validates that the provided method name is valid for the language or script being used. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IEventBindingService.CreateUniqueMethodName(IComponent, EventDescriptor) |
Creates a unique name for an event-handler method for the specified component and event. |
| IEventBindingService.GetCompatibleMethods(EventDescriptor) |
Gets a collection of event-handler methods that have a method signature compatible with the specified event. |
| IEventBindingService.GetEvent(PropertyDescriptor) |
Gets an EventDescriptor for the event that the specified property descriptor represents, if it represents an event. |
| IEventBindingService.GetEventProperties(EventDescriptorCollection) |
Converts a set of event descriptors to a set of property descriptors. |
| IEventBindingService.GetEventProperty(EventDescriptor) |
Converts a single event descriptor to a property descriptor. |
| IEventBindingService.ShowCode() |
Displays the user code for the designer. |
| IEventBindingService.ShowCode(IComponent, EventDescriptor) |
Displays the user code for the specified event. |
| IEventBindingService.ShowCode(Int32) |
Displays the user code for the designer at the specified line. |