Universal Windows Service Class Library

Trigger.Remove Method (String)

Remove the trigger with given name from static trigger list.

public static void Remove(
   string name
);

Parameters

name
Name of the trigger which should be removed.

Remarks

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

The static trigger list will be used for global trigger which could be used from different objects.

For an example source code see the Add method.

Exceptions

Exception TypeCondition
ArgumentNullExceptionThrown if no name was given.
ArgumentExceptionThe given trigger name is invalid.

See Also

Trigger Class | uws.Triggers Namespace | Trigger.Remove Overload List