Initializes a new instance of the WeeklyPattern class with a set of days, the weekly execution interval, the pattern name, the start and end times for the event recurrence pattern, and the event recurrence pattern repetition rate specified.
[Visual Basic] Overloads Public Sub New( _ ByVal daysOfWeek As DaysOfWeek, _ ByVal everyNthWeek As Integer, _ ByVal patternName As String, _ ByVal startTime As TimeSpan, _ ByVal endTime As TimeSpan, _ ByVal interval As TimeSpan _ ) [C#] public WeeklyPattern( DaysOfWeek daysOfWeek, int everyNthWeek, string patternName, TimeSpan startTime, TimeSpan endTime, TimeSpan interval ); [C++] public: WeeklyPattern( DaysOfWeek daysOfWeek, int everyNthWeek, String* patternName, TimeSpan startTime, TimeSpan endTime, TimeSpan interval ); [JScript] public function WeeklyPattern( daysOfWeek : DaysOfWeek, everyNthWeek : int, patternName : String, startTime : TimeSpan, endTime : TimeSpan, interval : TimeSpan );
Exception Type | Condition |
---|---|
ArgumentException | The endTime parameter value is less than 0 or greater than 23:59:59.
-or- The Interval property is less than 0. -or- The patternName parameter value is greater than 255 characters. -or- The startTime parameter value is less than 0 or greater than 23:59:59. -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). |
WeeklyPattern Class | WeeklyPattern Members | System.Timers Namespace | WeeklyPattern Constructor Overload List