EventHandlerList.AddHandler(Object, Delegate) 方法

定義

將委派加入清單。Adds a delegate to the list.

public:
 void AddHandler(System::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

擁有事件的物件。The object that owns the event.

value
Delegate

要加入至清單的委派。The delegate to add to the list.

適用於