1

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?

Leon Zhou
  • 633
  • 6
  • 20

1 Answers1

2

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).

Dmitry Streblechenko
  • 62,942
  • 4
  • 53
  • 78