Universal Windows Service Class Library

Monitor.SignOn Method 

Register given event handler at monitor with given name.

public static void SignOn(
   MonitorEventHandler eventHandler,
   string name
);

Parameters

eventHandler
Delegate object for monitor event handler.
name
Name of the matching monitor.

Remarks

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.

Exceptions

Exception TypeCondition
ArgumentNullExceptionThrown if no event handler or name were given.

See Also

Monitor Class | uws.Monitors Namespace