Mono Class Library: System.Reflection.EventInfo Overview | Members

System.Reflection.EventInfo.RemoveEventHandler Method

Removes the specified event handler delegate from the specified event source.

[System.Diagnostics.DebuggerStepThrough]
public void RemoveEventHandler (object target, Delegate handler)

Parameters

target
An object that represents an event source.
handler
A Delegate instance to be disassociated from the events reflected by the current instance that are raised by target.

Exceptions

TypeReason
ArgumentExceptionhandler is not the same type Type as the event handler delegate declared for the event reflected by the current instance.

Remarks

After this method is invoked, subsequent events reflected by the current instance that are raised by target will no longer cause handler to invoke its methods.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0