Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Events.RecurrenceEnd.NewWithOccurrenceCount
Creates a recurrence end with a maximum occurrence count.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Events | 6.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "Events.RecurrenceEnd.NewWithOccurrenceCount"; Count ) More
Parameters
Parameter | Description | Example |
---|---|---|
Count | The new occurence count. | 5 |
Result
Returns recurrence end ID or error.
Description
Creates a recurrence end with a maximum occurrence count.EKRecurrenceEnd is an attribute of EKRecurrenceRule that defines how long the recurrence is scheduled to repeat. The recurrence can be defined either with a number that indicates the total number times it repeats, or with a date, after which it no longer repeats. An event which is set to never end should have its EKRecurrenceEnd set to empty. If the end of the pattern is defines with a date, the client must pass a valid date. If the end of the pattern is defined as terms of a number of occurrences, the occurrenceCount passed to the initializer must be positive, it cannot be 0.
See also
This function checks for a license.
Created 10th March 2016, last changed 13th March 2016
Events.RecurrenceEnd.NewWithEndDate - Events.RecurrenceEnd.OccurrenceCount