NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MonthlyPattern Constructor (DaysOfWeek, OccurrenceInMonth, Months, String)

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
);

Parameters

daysOfWeek
The set of days in the week during which an event should occur.
occurrencesInMonth
The set of dates on which an event is raised.
monthsOfYear
The set of months in a year during which an event should occur.
patternName
The name of the class that identifies the recurrence pattern.

Exceptions

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).

See Also

MonthlyPattern Class | MonthlyPattern Members | System.Timers Namespace | MonthlyPattern Constructor Overload List