System.ComponentModel.EventDescriptor.AddEventHandler Method

When overridden in a derived class, binds the event to the component.

Syntax

public abstract void AddEventHandler (object component, Delegate value)

Parameters

component
A component that provides events to the delegate.
value
A delegate that represents the method that handles the event.

Remarks

Typically, this method is implemented through reflection. For more information about reflection, see the topics in Reflection.

For more information about delegates, see Events and Delegates.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0