TaskMaintenanceTriggerEnum Enumeration

Specifies which event in the maintenance group(s) triggers the task.

Members
Notes:

The  property of the   allows you to get or set more than one trigger by taking the sum of the values of the events. For example, a property value of 6 indicates that the task is triggered when a corrective maintenance (value=2) or preventive maintenance (value=4) starts.

Alternatively, you can set a combination of triggers by using the logical  operator. For example, the following VB.NET code sets two triggers:

t cScheduledTask t.MaintenanceTriggers = TaskMaintenanceTriggerEnum.BlockFails TaskMaintenanceTriggerEnum.BlockRestored