DaysOfWeek (monthlyDayOfWeekScheduleType) Element
Specifies the days of the week in which the task runs.
<xs:element name="DaysOfWeek"
type="daysOfWeekType"
/>
The DaysOfWeek element is defined by the monthlyDayOfWeekScheduleType complex type.
Parent element
Element | Derived from | Description |
---|---|---|
ScheduleByMonthDayOfWeek | monthlyDayOfWeekScheduleType | Specifies a trigger that starts a job for a monthly day-of-week schedule. |
Child elements
Element | Type | Description |
---|---|---|
Friday | Specifies that the task runs on Friday. |
|
Monday | Specifies that the task runs on Monday. |
|
Saturday | Specifies that the task runs on Saturday. |
|
Sunday | Specifies that the task runs on Sunday. |
|
Thursday | Specifies that the task runs on Thursday. |
|
Tuesday | Specifies that the task runs on Tuesday. |
|
Wednesday | Specifies that the task runs on Wednesday. |
Remarks
For scripting development, the days of the week for a monthly day-of-week calendar are specified using the MonthlyDOWTrigger.DaysOfWeek property.
For C++ development, the days of the week for a monthly day-of-week calendar are specified using the IMonthlyDOWTrigger::DaysOfWeek property.
The child elements above are defined by the daysOfWeekType complex type.
Examples
The following XML defines a monthly day-of-week calendar that starts the task on Monday of the first week for each month of the year.
<ScheduleByMonthDayOfWeek>
<Weeks>
<Week>1</Week>
</Weeks>
<DaysOfWeek>
<Monday/>
</DaysOfWeek>
<Months>
<January/>
<February/>
<March/>
<April/>
<May/>
<June/>
<July/>
<August/>
<September/>
<October/>
<November/>
<December/>
<Months>
</ScheduleByMonthDayOfWeek>
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για