NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

WeeklyPattern Constructor (DaysOfWeek, Int32)

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
);

Parameters

daysOfWeek
The set of days in the week during which the event should occur.
everyNthWeek
The weekly execution interval for the recurrence pattern.

Exceptions

Exception Type Condition
ArgumentException Theparameter value is not a valid DaysOfWeek value.

-or-

Theparameter value is less than or equal to 0.

Remarks

For example, for this event to occur every two weeks on Monday and Friday, set theto Monday and Friday, andto 2.

See Also

WeeklyPattern Class | WeeklyPattern Members | System.Timers Namespace | WeeklyPattern Constructor Overload List