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.AddWeeklyPattern (DaysOfWeek, Int32)

Adds a WeeklyPattern, given the sets of days in the week, and the weekly interval.

[Visual Basic]
Overloads Public Function AddWeeklyPattern( _
   ByVal daysOfWeek As DaysOfWeek, _
   ByVal everyNthWeek As Integer _
) As WeeklyPattern
[C#]
public WeeklyPattern AddWeeklyPattern(
   DaysOfWeek daysOfWeek,
   int everyNthWeek
);
[C++]
public: WeeklyPattern* AddWeeklyPattern(
   DaysOfWeek daysOfWeek,
   int everyNthWeek
);
[JScript]
public function AddWeeklyPattern(
   daysOfWeek : DaysOfWeek,
   everyNthWeek : int
) : WeeklyPattern;

Parameters

daysOfWeek
The set of days in a week during which the event should occur.
everyNthWeek
The weekly execution interval for this recurrence pattern.

Return Value

The WeeklyPattern.

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, "WeeklyPattern3". 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.AddWeeklyPattern Overload List | DaysOfWeek | WeeklyPattern