Compartir vía


EventHandlerList.AddHandler(Object, Delegate) Método

Definición

Agrega un delegado a la lista.

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)

Parámetros

key
Object

Objeto que posee el evento.

value
Delegate

Delegado que se va a agregar a la lista.

Se aplica a