AddEventHandler

Method

Adds eventHandler to the event named eventName on the target object. Equivalent to target.eventName += eventHandler;

Definition

void AddEventHandler(object target, string eventName, Delegate eventHandler)
void AddEventHandler(object target, string eventName, Delegate eventHandler)

Parameters

ParameterDescription
object target
string eventName
Delegate eventHandler