Initializes a new instance of the DailyPattern class with the daily excution interval, the patternName, the start and end times, and the repetition rate specified.
[Visual Basic] Overloads Public Sub New( _ ByVal everyNthDay As Integer, _ ByVal patternName As String, _ ByVal startTime As TimeSpan, _ ByVal endTime As TimeSpan, _ ByVal interval As TimeSpan _ ) [C#] public DailyPattern( int everyNthDay, string patternName, TimeSpan startTime, TimeSpan endTime, TimeSpan interval ); [C++] public: DailyPattern( int everyNthDay, String* patternName, TimeSpan startTime, TimeSpan endTime, TimeSpan interval ); [JScript] public function DailyPattern( everyNthDay : int, patternName : String, startTime : TimeSpan, endTime : TimeSpan, interval : TimeSpan );
Exception Type | Condition |
---|---|
ArgumentException | The endTime parameter value is greater than 23:59:59.
-or- The interval parameter value is less than 0. -or- The patternName parameter value is less than 0 or greater than 255 characters. -or- The startTime parameter value is less than 0 or greater than 23:59:59. -or- The everyNthDay parameter value is less than or equal to 0. |
ArgumentNullException | The patternName parameter value is a null reference (in Visual Basic Nothing). |
DailyPattern Class | DailyPattern Members | System.Timers Namespace | DailyPattern Constructor Overload List