System.Runtime.InteropServices._EventInfo.RemoveEventHandler Method

Provides COM objects with version-independent access to the System.Reflection.EventInfo.RemoveEventHandler(object, Delegate) method.

Syntax

public void RemoveEventHandler (object target, Delegate handler)

Parameters

target
The event source.
handler
The delegate to be disassociated from the events raised by target.

Remarks

This method is for access to managed classes from unmanaged code and should not be called from managed code.

The System.Reflection.EventInfo.RemoveEventHandler(object, Delegate) method removes an event handler from an event source.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0