Register given event handler at monitor with given name.
The function register the given event handler at monitor in static monitor list where name of monitor matches.
The static monitor list will be used for monitors which could be used from different triggers or something else.
For an example source code see the Add method.
|ArgumentNullException||Thrown if no event handler or name were given.|