DayOfWeekIndexType Enumeration
The DayOfWeekIndexType enumeration describes which week in a month is used in a relative recurrence pattern.
Namespace: ExchangeWebServices
Assembly: EWS (in EWS.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Enumeration DayOfWeekIndexType
'Usage
Dim instance As DayOfWeekIndexType
[SerializableAttribute]
public enum DayOfWeekIndexType
Members
Member name | Description | |
---|---|---|
First | Indicates that the first week in the month is used in the recurrence pattern. | |
Second | Indicates that the second week in the month is used in the recurrence pattern. | |
Third | Indicates that the third week in the month is used in the recurrence pattern. | |
Fourth | Indicates that the fourth week in the month is used in the recurrence pattern. | |
Last | 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.