IDelegateEvent.AddHandler<'Delegate> 方法 (F#)
將處理常式委派物件連接至事件。 處理常式可以使用 的 RemoveHandler 來稍後移除。 引發事件時所要叫用的接聽程式。
命名空間/模組路徑:Microsoft.FSharp.Control
組件:FSharp.Core (在 FSharp.Core.dll 中)
// Signature:
abstract this.AddHandler : 'Delegate -> unit
// Usage:
iDelegateEvent.AddHandler (handler)
參數
handler
型別:'Delegate引發事件時所要叫用的委派。
平台
Windows 7、Windows Vista SP2、Windows XP SP3、Windows XP x64 SP2、Windows Server 2008 R2、Windows Server 2008 SP2、Windows Server 2003 SP2
版本資訊
F# 執行階段
支援版本:2.0、4.0
Silverlight
支援版本:3