WeakEventManager.AddEventHandler 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
参数
- handler
- System.EventHandler
- eventName
- System.String
适用于
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)
类型参数
- TEventArgs
参数
- handler
- System.EventHandler<TEventArgs>
- eventName
- System.String