Initializes a new instance of the DaysOfMonthPattern class with a set of days in a month, a set of months in a year, and the patternName specified.
[Visual Basic] Overloads Public Sub New( _ ByVal daysOfMonth() As Integer, _ ByVal monthsOfYear As Months, _ ByVal patternName As String _ ) [C#] public DaysOfMonthPattern( int[] daysOfMonth, Months monthsOfYear, string patternName ); [C++] public: DaysOfMonthPattern( int* daysOfMonth[], Months monthsOfYear, String* patternName ); [JScript] public function DaysOfMonthPattern( daysOfMonth : int[], monthsOfYear : Months, patternName : String );
Exception Type | Condition |
---|---|
ArgumentException | The patternName parameter value is greater than 255 characters.
-or- The daysOfMonth parameter value is a null reference (in Visual Basic Nothing). -or- The daysOfMonth parameter's index is less than 0 or greater than 31. -or- The monthsOfYear parameter value is not a valid Months value. |
ArgumentNullException | The patternName parameter value is a null reference (Nothing). |
DaysOfMonthPattern Class | DaysOfMonthPattern Members | System.Timers Namespace | DaysOfMonthPattern Constructor Overload List | Months