Tnef OptionsMax Attachments Property
Get or set the maximum number of attachments that will be loaded for a single message.
Definition
Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The maximum number of attachments. The default is DefaultMaxAttachments.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public int MaxAttachments { get; set; }Property Value
Int32The maximum number of attachments. The default is DefaultMaxAttachments.
Remarks
Gets or sets the maximum number of attachments that TnefMessage will load for a single message. Attachments of embedded messages are counted separately.
When the limit is exceeded, a TooManyAttachments issue is reported and any further attachments are skipped.
Exceptions
| ArgumentOutOfRangeException | value is negative. |