EventBindingService EventBindingService EventBindingService EventBindingService Class

Definition

A default implementation of the IEventBindingService interface.

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

Initializes a new instance of the EventBindingService class.

Methods

CreateUniqueMethodName(IComponent, EventDescriptor) CreateUniqueMethodName(IComponent, EventDescriptor) CreateUniqueMethodName(IComponent, EventDescriptor) CreateUniqueMethodName(IComponent, EventDescriptor)

Creates a unique method name.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
FreeMethod(IComponent, EventDescriptor, String) FreeMethod(IComponent, EventDescriptor, String) FreeMethod(IComponent, EventDescriptor, String) FreeMethod(IComponent, EventDescriptor, String)

Provides a notification that a particular method is no longer being used by an event handler.

GetCompatibleMethods(EventDescriptor) GetCompatibleMethods(EventDescriptor) GetCompatibleMethods(EventDescriptor) GetCompatibleMethods(EventDescriptor)

Returns a collection of names of compatible methods.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetService(Type) GetService(Type) GetService(Type) GetService(Type)

Gets the requested service from the service provider.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ShowCode() ShowCode() ShowCode() ShowCode()

Displays user code.

ShowCode(IComponent, EventDescriptor, String) ShowCode(IComponent, EventDescriptor, String) ShowCode(IComponent, EventDescriptor, String) ShowCode(IComponent, EventDescriptor, String)

Displays the user code for the specified method.

ShowCode(Int32) ShowCode(Int32) ShowCode(Int32) ShowCode(Int32)

Displays the user code at the given line number.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
UseMethod(IComponent, EventDescriptor, String) UseMethod(IComponent, EventDescriptor, String) UseMethod(IComponent, EventDescriptor, String) UseMethod(IComponent, EventDescriptor, String)

Provides a notification that a particular method is being used by an event handler.

ValidateMethodName(String) ValidateMethodName(String) ValidateMethodName(String) ValidateMethodName(String)

Validates that the provided method name is valid for the language or script being used.

Explicit Interface Implementations

IEventBindingService.CreateUniqueMethodName(IComponent, EventDescriptor) IEventBindingService.CreateUniqueMethodName(IComponent, EventDescriptor) IEventBindingService.CreateUniqueMethodName(IComponent, EventDescriptor) IEventBindingService.CreateUniqueMethodName(IComponent, EventDescriptor)

Creates a unique name for an event-handler method for the specified component and event.

IEventBindingService.GetCompatibleMethods(EventDescriptor) IEventBindingService.GetCompatibleMethods(EventDescriptor) IEventBindingService.GetCompatibleMethods(EventDescriptor) IEventBindingService.GetCompatibleMethods(EventDescriptor)

Gets a collection of event-handler methods that have a method signature compatible with the specified event.

IEventBindingService.GetEvent(PropertyDescriptor) IEventBindingService.GetEvent(PropertyDescriptor) IEventBindingService.GetEvent(PropertyDescriptor) IEventBindingService.GetEvent(PropertyDescriptor)

Gets an EventDescriptor for the event that the specified property descriptor represents, if it represents an event.

IEventBindingService.GetEventProperties(EventDescriptorCollection) IEventBindingService.GetEventProperties(EventDescriptorCollection) IEventBindingService.GetEventProperties(EventDescriptorCollection) IEventBindingService.GetEventProperties(EventDescriptorCollection)

Converts a set of event descriptors to a set of property descriptors.

IEventBindingService.GetEventProperty(EventDescriptor) IEventBindingService.GetEventProperty(EventDescriptor) IEventBindingService.GetEventProperty(EventDescriptor) IEventBindingService.GetEventProperty(EventDescriptor)

Converts a single event descriptor to a property descriptor.

IEventBindingService.ShowCode() IEventBindingService.ShowCode() IEventBindingService.ShowCode() IEventBindingService.ShowCode()

Displays the user code for the designer.

IEventBindingService.ShowCode(IComponent, EventDescriptor) IEventBindingService.ShowCode(IComponent, EventDescriptor) IEventBindingService.ShowCode(IComponent, EventDescriptor) IEventBindingService.ShowCode(IComponent, EventDescriptor)

Displays the user code for the specified event.

IEventBindingService.ShowCode(Int32) IEventBindingService.ShowCode(Int32) IEventBindingService.ShowCode(Int32) IEventBindingService.ShowCode(Int32)

Displays the user code for the designer at the specified line.

Security

NamedPermissionSet
for full access to system resources. Demand values: LinkDemand, InheritanceDemand. Associated state:

Applies to

See also