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)

Initializes a new instance of the MonthlyPattern class, given a set of days in the week, a set of occurrences in a month, a set of months in a year.

[Visual Basic]
Overloads Public Sub New( _
   ByVal daysOfWeek As DaysOfWeek, _
   ByVal occurrencesInMonth As OccurrenceInMonth, _
   ByVal monthsOfYear As Months _
)
[C#]
public MonthlyPattern(
   DaysOfWeek daysOfWeek,
   OccurrenceInMonth occurrencesInMonth,
   Months monthsOfYear
);
[C++]
public: MonthlyPattern(
   DaysOfWeek daysOfWeek,
   OccurrenceInMonth occurrencesInMonth,
   Months monthsOfYear
);
[JScript]
public function MonthlyPattern(
   daysOfWeek : DaysOfWeek,
   occurrencesInMonth : OccurrenceInMonth,
   monthsOfYear : Months
);

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.

Exceptions

Exception Type Condition
ArgumentException Theparameter value is not a valid TBD value.

-or-

Theparameter value is not a valid TBD value.

-or-

Theparameter value is not a valid Months value.

See Also

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