共用方式為


EventHandlerList.AddHandler(Object, Delegate) 方法

定義

將委派加入清單。

public:
 void AddHandler(System::Object ^ key, Delegate ^ value);
public void AddHandler (object key, Delegate? value);
public void AddHandler (object key, Delegate value);
member this.AddHandler : obj * Delegate -> unit
Public Sub AddHandler (key As Object, value As Delegate)

參數

key
Object

擁有事件的物件。

value
Delegate

要加入至清單的委派。

適用於