DayOfWeekIndexType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The DayOfWeekIndexType enumeration describes which week in a month is used in a relative recurrence pattern.
public enum class DayOfWeekIndexType
public enum DayOfWeekIndexType
Public Enum DayOfWeekIndexType
- Inheritance
-
DayOfWeekIndexType
Fields
Name | Value | Description |
---|---|---|
First | 0 | Indicates that the first week in the month is used in the recurrence pattern. |
Second | 1 | Indicates that the second week in the month is used in the recurrence pattern. |
Third | 2 | Indicates that the third week in the month is used in the recurrence pattern. |
Fourth | 3 | Indicates that the fourth week in the month is used in the recurrence pattern. |
Last | 4 | Indicates that the last week in the month is used in the recurrence pattern. |
Remarks
You can determine the day that is used in a yearly recurrence pattern by checking the DayOfWeekIndex property of the RelativeYearlyRecurrencePatternType class along with the Month property. You can determine the week that is used in a monthly recurrence pattern by checking the DayOfWeekIndex property of the RelativeMonthlyRecurrencePatternType class.
For example, the second Monday of a month may occur in the third week of that month. If the month starts on a Friday, the first week of the month does not contain a Monday. Therefore, the first Monday has to occur in the second week, and the second Monday of the month occurs in the third week.