Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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

💬 Ask a question or report a problem