WeakEventHandlerManager.

Unsubscribe<TEventArgs, TSubscriber>(object, string, EventHandler<TEventArgs>) Method

Summary

Unsubscribes from an event.
Namespace
Avalonia.Utilities
Containing Type
WeakEventHandlerManager

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

Type Description
void