TnefConversionOptionsMaxCalendarExceptionsSize Property

Get or set the maximum total size, in bytes, of the modified occurrences of a recurring appointment that are written to the calendar.

Definition

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

Property Value

Int64
The maximum size of the exceptions, in bytes. The default is DefaultMaxCalendarExceptionsSize.

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. Limiting the number of exceptions with MaxCalendarExceptions is not enough on its own, because an appointment with a very large description or attendee list multiplies that size by the number of exceptions. This limit bounds the total size of the exception VEVENTs; the appointment itself is always written.

Once an exception would exceed the limit, it and the remaining exceptions 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