EventHandlerList.AddHandler(Object, Delegate) Yöntem

Tanım

Listeye bir temsilci ekler.Adds a delegate to the list.

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)

Parametreler

key
Object

Olayın sahibi olan nesne.The object that owns the event.

value
Delegate

Listeye eklenecek temsilci.The delegate to add to the list.

Şunlara uygulanır