Summary
Unsubscribes from an event.
Syntax
public static void Unsubscribe<TEventArgs, TSubscriber>(object target, string eventName, EventHandler<TEventArgs> subscriber)
where TEventArgs : EventArgs where TSubscriber : class
Type Parameters
Name |
Description |
TEventArgs |
The type of the event arguments. |
TSubscriber |
The type of the subscriber. |
Parameters
Name |
Type |
Description |
target |
object |
The event source. |
eventName |
string |
The name of the event. |
subscriber |
EventHandler<TEventArgs> |
The subscriber. |
Return Value