Removes an event handler from an event source.
Assembly: mscorlib (in mscorlib.dll)
'Declaration Public Overridable Sub RemoveEventHandler ( _ target As Object, _ handler As Delegate _ )
- Type: System.Object
The event source.
- Type: System.Delegate
The delegate to be disassociated from the events raised by target.
The event does not have a public remove accessor.
The handler that was passed in cannot be used.
The target parameter is Nothing and the event is not static.
The EventInfo is not declared on the target.
The caller does not have access permission to the member.