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.AddDaysOfMonthPattern (Int32[], Months)

Adds a DaysOfMonthPattern, given a set of days in a month, and a set of months in a year.

[Visual Basic]
Overloads Public Function AddDaysOfMonthPattern( _
   ByVal daysOfMonth() As Integer, _
   ByVal monthsOfYear As Months _
) As DaysOfMonthPattern
[C#]
public DaysOfMonthPattern AddDaysOfMonthPattern(
   int[] daysOfMonth,
   Months monthsOfYear
);
[C++]
public: DaysOfMonthPattern* AddDaysOfMonthPattern(
   int* daysOfMonth[],
   Months monthsOfYear
);
[JScript]
public function AddDaysOfMonthPattern(
   daysOfMonth : int[],
   monthsOfYear : Months
) : DaysOfMonthPattern;

Parameters

daysOfMonth
The set of days in a month during which an event should occur.
monthsOfYear
The months in a year during which an event should occur.

Return Value

The DaysOfMonthPattern.

Exceptions

Exception Type Condition
ArgumentException 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.

Remarks

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

When the name of the pattern is not specified, the name becomes the type of pattern with a unique number appended. For example, "DaysOfMonthPattern3". 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.AddDaysOfMonthPattern Overload List | DaysOfMonthPattern