Initializes a new instance of the MonthlyPattern class, with a set of days in the week, a set of occurrences in a month, a set of months in a year, and the patternName specified.
[Visual Basic] Overloads Public Sub New( _ ByVal daysOfWeek As DaysOfWeek, _ ByVal occurrencesInMonth As OccurrenceInMonth, _ ByVal monthsOfYear As Months, _ ByVal patternName As String _ ) [C#] public MonthlyPattern( DaysOfWeek daysOfWeek, OccurrenceInMonth occurrencesInMonth, Months monthsOfYear, string patternName ); [C++] public: MonthlyPattern( DaysOfWeek daysOfWeek, OccurrenceInMonth occurrencesInMonth, Months monthsOfYear, String* patternName ); [JScript] public function MonthlyPattern( daysOfWeek : DaysOfWeek, occurrencesInMonth : OccurrenceInMonth, monthsOfYear : Months, patternName : String );
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 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