MonthlyDOWTrigger object
Scripting object that represents a trigger that starts a task on a monthly day-of-week schedule. For example, the task starts on every first Thursday, May through October.
Members
The MonthlyDOWTrigger object has these types of members:
Properties
The MonthlyDOWTrigger object has these properties.
| Property | Access type | Description |
|---|---|---|
| Read/write |
Gets or sets the days of the week during which the task runs. | |
| Read/write |
Inherited from the Trigger object. Gets or sets a Boolean value that indicates whether the trigger is enabled. | |
| Read/write |
Inherited from the Trigger object. Gets or sets the date and time when the trigger is deactivated. The trigger cannot start the task after it is deactivated. | |
| Read/write |
Inherited from the Trigger object. Gets or sets the maximum amount of time that the task launched by this trigger is allowed to run. | |
| Read/write |
Inherited from the Trigger object. Gets or sets the identifier for the trigger. | |
| Read/write |
Gets or sets the months of the year during which the task runs. | |
| Read/write |
Gets or sets a delay time that is randomly added to the start time of the trigger. | |
| Read/write |
Inherited from the Trigger object. Gets or sets how often the task is run and how long the repetition pattern is repeated after the task is started. | |
| Read/write |
Gets or sets a Boolean value that indicates that the task runs on the last week of the month. | |
| Read/write |
Inherited from the Trigger object. Gets or sets the date and time when the trigger is activated. | |
| Read-only |
Inherited from the Trigger object. Gets the type of the trigger. | |
| Read/write |
Gets or sets the weeks of the month during which the task runs. |
Remarks
The time of day that the task is started is set by the StartBoundary property.
When reading or writing XML for a task, a monthly day-of-week trigger is specified using the ScheduleByMonthDayOfWeek element of the Task Scheduler schema.
Requirements
|
Minimum supported client | Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2008 [desktop apps only] |
|
Type library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 10/30/2012
