TnefConversionOptionsMaxCalendarExceptions Property

Get or set the maximum number of modified occurrences of a recurring appointment to write to the calendar.

Definition

Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public int MaxCalendarExceptions { get; set; }

Property Value

Int32
The maximum number of exceptions. The default is DefaultMaxCalendarExceptions.

Remarks

Each modified occurrence (exception) of a recurring appointment is written to the generated text/calendar part as its own VEVENT, which repeats most of the appointment's properties, such as its description and attendees. A recurrence pattern needs only a few bytes per exception, so this limit protects against a small, maliciously formed TNEF message producing a very large calendar.

Exceptions beyond the limit are omitted and reported as CalendarExceptionLimitExceeded. Their embedded messages, if any, are added to the MIME message as attachments.

Exceptions

ArgumentOutOfRangeException value is less than 0.

See Also