Initializes a new instance of the WeeklyPattern class with a set of days and the weekly execution interval specified.
[Visual Basic] Overloads Public Sub New( _ ByVal daysOfWeek As DaysOfWeek, _ ByVal everyNthWeek As Integer _ ) [C#] public WeeklyPattern( DaysOfWeek daysOfWeek, int everyNthWeek ); [C++] public: WeeklyPattern( DaysOfWeek daysOfWeek, int everyNthWeek ); [JScript] public function WeeklyPattern( daysOfWeek : DaysOfWeek, everyNthWeek : int );
Exception Type | Condition |
---|---|
ArgumentException | Theparameter value is not a valid DaysOfWeek value.
-or- Theparameter value is less than or equal to 0. |
For example, for this event to occur every two weeks on Monday and Friday, set theto Monday and Friday, andto 2.
WeeklyPattern Class | WeeklyPattern Members | System.Timers Namespace | WeeklyPattern Constructor Overload List