Skip to main content

Unsubscribe<TEventArgs, TSubscriber> Method

Unsubscribes from an event.

Definition​

Namespace: Avalonia.Utilities
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static void Unsubscribe<TEventArgs, TSubscriber>(
Object target,
string eventName,
EventHandler<TEventArgs> subscriber
)
where TEventArgs : EventArgs
where TSubscriber : class

Parameters​

  Object
The event source.
  String
The name of the event.
  EventHandler(TEventArgs)
The subscriber.

Type Parameters​

The type of the event arguments.
The type of the subscriber.

See Also​

Reference​

WeakEventHandlerManager Class
Avalonia.Utilities Namespace