When overridden in a derived class, binds the event to the component.
[Visual Basic] MustOverride Public Sub AddEventHandler( _ ByVal component As Object, _ ByVal value As Delegate _ ) [C#] public abstract void AddEventHandler( object component, Delegate value ); [C++] public: virtual void AddEventHandler( Object* component, Delegate* value ) = 0; [JScript] public abstract function AddEventHandler( component : Object, value : Delegate );
Typically, this method is implemented through reflection.
Notes to Inheritors: When you override this method, it should add the delegate to the component's event list by invoking the appropriate AddOn XXX method.
For more information about delegates, see TBD.
EventDescriptor Class | EventDescriptor Members | System.ComponentModel Namespace | AddEventHandler