Initializes a new instance of the Recurrence class.
Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling.Silverlight
Syntax
C#
Copy Code
|
---|
public Recurrence () |
Visual Basic
Copy Code
|
---|
Public Sub New () |
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
|
---|
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;
app.Recurrence = recurrence;
|
Visual Basic
Copy Code
|
---|
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
app.Recurrence = recurrence
|
See Also