Search
RecurrenceEnd Enumeration
See Also
 






Specifies when to stop repeating recurring events.

Namespace: MindFusion.Scheduling
File: Enum.js

 Syntax

JavaScript  Copy Code

// enum
RecurrenceEnd = {}

 Members

  Member name Description

EndDate

The recurrence ends at a specified date.

Never

Never stop repeating events.

NumOccurrences

Stop repeating events after a specified number of occurrences.

 Example

The following code creates a Recurrence that never ends for a schedule item for each Wednesday:

JavaScript  Copy Code

var p = MindFusion.Scheduling;

// setup the recurrence
var recurrence = new p.Recurrence();
recurrence.pattern = p.RecurrencePattern.Weekly;
recurrence.daysOfWeek = p.DaysOfWeek.Wednesday;
recurrence.startDate = date;
recurrence.recurrenceEnd = p.RecurrenceEnd.Never;
item.recurrence = recurrence;

 See Also