共用方式為


WeakEventManager.RemoveEventHandler 方法

定義

多載

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

RemoveEventHandler(EventHandler, String)

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

參數

handler
System.EventHandler
eventName
System.String

適用於

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

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

類型參數

TEventArgs

參數

handler
System.EventHandler<TEventArgs>
eventName
System.String

適用於