Initializes a new instance of the MonthlyPattern class, with a set of days in the week, a set of recurrence patterns in a month, a set of months in a year, the patternName, the time of day to start and stop the recurrence pattern, and the event recurrence pattern repetition rate specified.
[Visual Basic] Overloads Public Sub New( _ ByVal daysOfWeek As DaysOfWeek, _ ByVal recurrencePatternsInMonth As OccurrenceInMonth, _ ByVal monthsOfYear As Months, _ ByVal patternName As String, _ ByVal startTime As TimeSpan, _ ByVal endTime As TimeSpan, _ ByVal interval As TimeSpan _ ) [C#] public MonthlyPattern( DaysOfWeek daysOfWeek, OccurrenceInMonth recurrencePatternsInMonth, Months monthsOfYear, string patternName, TimeSpan startTime, TimeSpan endTime, TimeSpan interval ); [C++] public: MonthlyPattern( DaysOfWeek daysOfWeek, OccurrenceInMonth recurrencePatternsInMonth, Months monthsOfYear, String* patternName, TimeSpan startTime, TimeSpan endTime, TimeSpan interval ); [JScript] public function MonthlyPattern( daysOfWeek : DaysOfWeek, recurrencePatternsInMonth : OccurrenceInMonth, monthsOfYear : Months, 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 parameter value 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 occurrencesInMonth parameter value is not a valid OccurrenceInMonth value. -or- The monthsOfYear parameter value is not a valid Months value. |
ArgumentNullException | The patternName parameter value is a null reference (in Visual Basic Nothing). |
MonthlyPattern Class | MonthlyPattern Members | System.Timers Namespace | MonthlyPattern Constructor Overload List