Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

EventDescriptor.RemoveEventHandler Method

When overridden in a derived class, unbinds the delegate from the component so that the delegate will no longer receive events from the component.

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

public abstract void RemoveEventHandler(
	Object component,
	Delegate value


Type: System.Object

The component that the delegate is bound to.

Type: System.Delegate

The delegate to unbind from the component.

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

For more information about delegates, see Events and Delegates.

Notes to Inheritors

When you override this method, it should remove the delegate from the component's event list by invoking the appropriate remove_myHandler method.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0
© 2015 Microsoft