DayOfWeekIndexType Enumeration
TOC
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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)

'Declaration
<SerializableAttribute> _
Public Enumeration DayOfWeekIndexType
'Usage
Dim instance As DayOfWeekIndexType

Member nameDescription
FirstIndicates that the first week in the month is used in the recurrence pattern.
SecondIndicates that the second week in the month is used in the recurrence pattern.
ThirdIndicates that the third week in the month is used in the recurrence pattern.
FourthIndicates that the fourth week in the month is used in the recurrence pattern.
LastIndicates that the last week in the month is used in the recurrence pattern.

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.

Show:
© 2016 Microsoft