Version

DayOfWeekRecurrenceRule Constructor(DayOfWeek,Int32)

Initializes a new instance of DayOfWeekRecurrenceRule object.
Syntax
'Declaration
 
Public Function New( _
   ByVal day As DayOfWeek, _
   Optional ByVal relativePosition As Integer _
)
public DayOfWeekRecurrenceRule( 
   DayOfWeek day,
   int relativePosition
)

Parameters

day
Identifies the week day.
relativePosition
Optional value that specifies the relative position of the day within month or year. If the frequency is monthly or if a MonthOfYearRecurrenceRule is present then the relative position indentifies the relative position within a month. If frequency is yearly then it identifies the relative position within the year. In case of monthly, valid values are -5 to -1 and 1 to 5. In case of yearly, valid values are -53 to -1 and 1 to 53.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also