Freigeben über


VirtualTypeImplementor.RemoveEventHandler(EventInfo, Object, Delegate) Method

Definition

Removes the given delegate from the given event.

public:
 virtual void RemoveEventHandler(System::Reflection::EventInfo ^ eventInfo, System::Object ^ instance, Delegate ^ handler);
public virtual void RemoveEventHandler (System.Reflection.EventInfo eventInfo, object instance, Delegate handler);
abstract member RemoveEventHandler : System.Reflection.EventInfo * obj * Delegate -> unit
override this.RemoveEventHandler : System.Reflection.EventInfo * obj * Delegate -> unit
Public Overridable Sub RemoveEventHandler (eventInfo As EventInfo, instance As Object, handler As Delegate)

Parameters

eventInfo
EventInfo

The event to remove the handler from.

instance
Object

The instance on which to remove the event handler. This may be null if the event is static.

handler
Delegate

The event handler to remove.

Exceptions

If non-abstract derived class did not provide an implementation by overriding this method.

Applies to