Udostępnij za pośrednictwem


WeakEventManager.AddEventHandler Metoda

Definicja

Przeciążenia

AddEventHandler(EventHandler, String)
AddEventHandler<TEventArgs>(EventHandler<TEventArgs>, String)

AddEventHandler(EventHandler, String)

public void AddEventHandler (EventHandler handler, string eventName = default);
member this.AddEventHandler : EventHandler * string -> unit

Parametry

handler
System.EventHandler
eventName
System.String

Dotyczy

AddEventHandler<TEventArgs>(EventHandler<TEventArgs>, String)

public void AddEventHandler<TEventArgs> (EventHandler<TEventArgs> handler, string eventName = default) where TEventArgs : EventArgs;
member this.AddEventHandler : EventHandler<'EventArgs (requires 'EventArgs :> EventArgs)> * string -> unit (requires 'EventArgs :> EventArgs)

Parametry typu

TEventArgs

Parametry

handler
System.EventHandler<TEventArgs>
eventName
System.String

Dotyczy