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!

RecurrencePatterns.AddMonthlyPattern (DaysOfWeek, OccurrenceInMonth, Months, String)

Adds a MonthlyPattern, given the set of days in a week, the set of occurrence numbers in a month, the set of months in a year, and the pattern name.

[Visual Basic]
Overloads Public Function AddMonthlyPattern( _
   ByVal daysOfWeek As DaysOfWeek, _
   ByVal recurrencePatternsInMonth As OccurrenceInMonth, _
   ByVal monthsOfYear As Months, _
   ByVal patternName As String _
) As MonthlyPattern
[C#]
public MonthlyPattern AddMonthlyPattern(
   DaysOfWeek daysOfWeek,
   OccurrenceInMonth recurrencePatternsInMonth,
   Months monthsOfYear,
   string patternName
);
[C++]
public: MonthlyPattern* AddMonthlyPattern(
   DaysOfWeek daysOfWeek,
   OccurrenceInMonth recurrencePatternsInMonth,
   Months monthsOfYear,
   String* patternName
);
[JScript]
public function AddMonthlyPattern(
   daysOfWeek : DaysOfWeek,
   recurrencePatternsInMonth : OccurrenceInMonth,
   monthsOfYear : Months,
   patternName : String
) : MonthlyPattern;

Parameters

daysOfWeek
The set of days in a week during which an event should occur.
recurrencePatternsInMonth
The set of recurrence patterns in a month during which an event should occur.
monthsOfYear
The set of months in a year during which an event should occur.
patternName
The name that identifies the recurrence pattern.

Return Value

The MonthlyPattern.

Exceptions

Exception Type Condition
ArgumentException The patternName parameter value is greater than 255 characters.
ArgumentNullException The patternName parameter value is a null reference (in Visual Basic Nothing).

Remarks

When a pattern is added, the next scheduled time is automatically recalculated.

The properties of the pattern that are not set through parameters are set to the pattern type's default values.

See Also

RecurrencePatterns Class | RecurrencePatterns Members | System.Timers Namespace | RecurrencePatterns.AddMonthlyPattern Overload List | DaysOfWeek | MonthlyPattern | Months | OccurrenceInMonth