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, String)

Initializes a new instance of the WeeklyPattern class with a set of days, the weekly execution interval, and the pattern name specified.

[Visual Basic]
Overloads Public Sub New( _
   ByVal daysOfWeek As DaysOfWeek, _
   ByVal everyNthWeek As Integer, _
   ByVal patternName As String _
)
[C#]
public WeeklyPattern(
   DaysOfWeek daysOfWeek,
   int everyNthWeek,
   string patternName
);
[C++]
public: WeeklyPattern(
   DaysOfWeek daysOfWeek,
   int everyNthWeek,
   String* patternName
);
[JScript]
public function WeeklyPattern(
   daysOfWeek : DaysOfWeek,
   everyNthWeek : int,
   patternName : String
);

Parameters

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

Exceptions

Exception Type Condition
ArgumentException The patternName parameter value is greater than 255 characters.

-or-

The daysOfWeek parameter value is not a valid DaysOfWeek value.

-or-

The everyNthWeek parameter value is less than or equal to 0.

ArgumentNullException The patternName parameter value is a null reference (in Visual Basic Nothing).

See Also

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