Universal Windows Service Class Library

Monitor.Remove Method (String)

Remove the monitor with given name from static monitor list.

public static void Remove(
   string name
);

Parameters

name
Name of the monitor which should be removed.

Remarks

The function removes the monitor with given name from static monitor list. Running monitors will be stopped and then removed.

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 name was given.
ArgumentExceptionThe given monitor name is invalid.

See Also

Monitor Class | uws.Monitors Namespace | Monitor.Remove Overload List