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.AddDailyPattern (Int32, String)

Adds a DailyPattern, given the daily execution interval, and the pattern name.

[Visual Basic]
Overloads Public Function AddDailyPattern( _
   ByVal everyNthDay As Integer, _
   ByVal patternName As String _
) As DailyPattern
[C#]
public DailyPattern AddDailyPattern(
   int everyNthDay,
   string patternName
);
[C++]
public: DailyPattern* AddDailyPattern(
   int everyNthDay,
   String* patternName
);
[JScript]
public function AddDailyPattern(
   everyNthDay : int,
   patternName : String
) : DailyPattern;

Parameters

everyNthDay
The daily execution interval for this recurrence pattern.
patternName
The name that identifies the recurrence pattern.

Return Value

The DailyPattern.

Exceptions

Exception Type Condition
ArgumentException The patternName parameter value is greater than 255 characters.

-or-

The everyNthDay parameter value is less than or equal to 0.

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.AddDailyPattern Overload List | DailyPattern