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.

适用于