Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EventInfo.RemoveEventHandler Method

Removes an event handler from an event source.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public virtual void RemoveEventHandler(
	Object target,
	Delegate handler


Type: System.Object
The event source.
Type: System.Delegate
The delegate to be unhooked from the event source.


The event does not have a public remove accessor.


The handler that was passed in cannot be used.


The target parameter is null and the event is not static.


The EventInfo is not declared on the target.


This member is invoked late-bound through mechanisms such as Type.InvokeMember.

Use the AddEventHandler method to hook up events in late-bound scenarios.

This method attempts to unhook an event handler for the current event on the event source specified by target, by calling the remove accessor.


In reflection, the remove accessor can be obtained by calling the GetRemoveMethod method.

For an example, see the AddEventHandler method.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2017 Microsoft