MindFusion.Scheduling for Silverlight Programmer's Guide
Recurrence.MonthlyRecurrence Property
See Also
 





Gets or sets the type of monthly recurrence.

Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling.Silverlight

 Syntax

C#  Copy Code

public MonthlyRecurrence MonthlyRecurrence { get; set; }

Visual Basic  Copy Code

Public Property MonthlyRecurrence As MonthlyRecurrence

 Property Value

A member of the MonthlyRecurrence enumeration.

 Remarks

This value is used when the recurrence Pattern is set to Monthly.

 Example

The following example creates a new recurrence object and associates it with an existing appointment. The example assumes that the appointment referenced by app already exists.

C#  Copy Code

// Create a recurrence that happens at the third weekend
// every three months, effective July 14th, 2005.
// The recurrence is infinite
Recurrence recurrence = new Recurrence();
recurrence.Pattern = RecurrencePattern.Monthly;
recurrence.MonthlyRecurrence = MonthlyRecurrence.ByDayType;
recurrence.Occurrence = Occurrence.Third;
recurrence.Day = DayOfWeekType.Weekend;
recurrence.Months = 3;
recurrence.StartDate = new DateTime(2005, 7, 14);
recurrence.RecurrenceEnd = RecurrenceEnd.Never;

// Associate the recurrence with the appointment
app.Recurrence = recurrence;

Visual Basic  Copy Code

' Create a recurrence that happens at the third weekend
' every three months, effective July 14th, 2005.
' The recurrence is infinite
Dim recurrence As New Recurrence()
recurrence.Pattern = RecurrencePattern.Monthly
recurrence.MonthlyRecurrence = MonthlyRecurrence.ByDayType
recurrence.Occurrence = Occurrence.Third
recurrence.Day = DayOfWeekType.Weekend
recurrence.Months = 3
recurrence.StartDate = New DateTime(2005, 7, 14)
recurrence.RecurrenceEnd = RecurrenceEnd.Never

' Associate the recurrence with the appointment
app.Recurrence = recurrence

 See Also

Recurrence Members
Recurrence Class
MindFusion.Scheduling Namespace