'How to determine if the RecurrencePattern in Outlook is end by a date or end by recurrence count

For a finite recurring appointment in Outlook, the RecurrencePattern interface doesn't expose a property to tell you if the pattern is end by a date or end by recurrence count. The PatternEndDate, EndTime, and Occurrences properties are always populated.

Is there a way to determine the end type of the pattern?



Solution 1:[1]

OOM does not expose that property. You can

  1. parse the recurrence blob yourself (not for the fainthearted).

  2. If using Redemption is an option (I am its author), use RDORecurrencePattern.PatternEndKind property (rekNoEndDate, rekEndAfterOccurrences, rekEndByDate).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1