Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
EventBindingService Class
Collapse the table of content
Expand the table of content

EventBindingService Class

A default implementation of the IEventBindingService interface.

System.Object
  System.ComponentModel.Design.EventBindingService

Namespace:  System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public abstract class EventBindingService : IEventBindingService

The EventBindingService type exposes the following members.

  NameDescription
Protected methodEventBindingServiceInitializes a new instance of the EventBindingService class.
Top

  NameDescription
Protected methodCreateUniqueMethodNameCreates a unique method name.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected methodFreeMethodProvides a notification that a particular method is no longer being used by an event handler.
Protected methodGetCompatibleMethodsReturns a collection of names of compatible methods.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Protected methodGetServiceGets the requested service from the service provider.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodShowCode()Displays user code.
Protected methodShowCode(Int32)Displays the user code at the given line number.
Protected methodShowCode(IComponent, EventDescriptor, String)Displays the user code for the specified method.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodUseMethodProvides a notification that a particular method is being used by an event handler.
Protected methodValidateMethodNameValidates that the provided method name is valid for the language or script being used.
Top

  NameDescription
Explicit interface implemetationPrivate methodIEventBindingService.CreateUniqueMethodNameCreates a unique name for an event-handler method for the specified component and event.
Explicit interface implemetationPrivate methodIEventBindingService.GetCompatibleMethodsGets a collection of event-handler methods that have a method signature compatible with the specified event.
Explicit interface implemetationPrivate methodIEventBindingService.GetEventGets an EventDescriptor for the event that the specified property descriptor represents, if it represents an event.
Explicit interface implemetationPrivate methodIEventBindingService.GetEventPropertiesConverts a set of event descriptors to a set of property descriptors.
Explicit interface implemetationPrivate methodIEventBindingService.GetEventPropertyConverts a single event descriptor to a property descriptor.
Explicit interface implemetationPrivate methodIEventBindingService.ShowCode()Displays the user code for the designer.
Explicit interface implemetationPrivate methodIEventBindingService.ShowCode(Int32)Displays the user code for the designer at the specified line.
Explicit interface implemetationPrivate methodIEventBindingService.ShowCode(IComponent, EventDescriptor)Displays the user code for the specified event.
Top

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft