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