TaskTriggerType Enumeration
Defines the type of triggers that can be used by tasks.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
[DefaultValueAttribute(TaskTriggerType.Time)]
public enum TaskTriggerType
Event | 0 | Triggers the task when a specific event occurs. Version 1.2 only. |
Time | 1 | Triggers the task at a specific time of day. |
Daily | 2 | Triggers the task on a daily schedule. |
Weekly | 3 | Triggers the task on a weekly schedule. |
Monthly | 4 | Triggers the task on a monthly schedule. |
MonthlyDOW | 5 | Triggers the task on a monthly day-of-week schedule. |
Idle | 6 | Triggers the task when the computer goes into an idle state. |
Registration | 7 | Triggers the task when the task is registered. Version 1.2 only. |
Boot | 8 | Triggers the task when the computer boots. |
Logon | 9 | Triggers the task when a specific user logs on. |
SessionStateChange | 11 | Triggers the task when a specific user session state changes. Version 1.2 only. |
Custom | 12 | Triggers the custom trigger. Version 1.3 only. |