Removes the specified event handler delegate from the specified event source.
[Edit]
[System.Diagnostics.DebuggerStepThrough] public void RemoveEventHandler (object target, Delegate handler) |
|
Parameters
- target
- An object that represents an event source.
[Edit]
- handler
- A Delegate instance to be disassociated from the events reflected by the current instance that are raised by target.
[Edit]
Exceptions
Type | Reason |
---|
ArgumentException | handler is not the same type Type as the event handler delegate declared for the event reflected by the current instance.
[Edit]
|
Remarks
Requirements
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0