Breyta

Deila með


EventBindingService Class

Definition

A default implementation of the IEventBindingService interface.

public ref class EventBindingService abstract : System::ComponentModel::Design::IEventBindingService
public abstract class EventBindingService : System.ComponentModel.Design.IEventBindingService
[System.Security.SecurityCritical]
public abstract class EventBindingService : System.ComponentModel.Design.IEventBindingService
type EventBindingService = class
    interface IEventBindingService
[<System.Security.SecurityCritical>]
type EventBindingService = class
    interface IEventBindingService
Public MustInherit Class EventBindingService
Implements IEventBindingService
Inheritance
EventBindingService
Attributes
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

EventBindingService(IServiceProvider)

Initializes a new instance of the EventBindingService class.

Methods

CreateUniqueMethodName(IComponent, EventDescriptor)

Creates a unique method name.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
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.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetService(Type)

Gets the requested service from the service provider.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
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.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
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

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.

Applies to

See also