This documentation is archived and is not being maintained.

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 = L"FullTrust")]
[PermissionSetAttribute(SecurityAction::LinkDemand, Name = L"FullTrust")]
public ref class EventBindingService abstract : 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 a hash function for a particular type. (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, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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: