Click or drag to resize
MimeKit

BodyPartBasicIsAttachment Property

Determines whether or not the body part is an attachment.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
public bool IsAttachment { get; }

Property Value

Boolean
true if this part is an attachment; otherwise, false.
Remarks

Determines whether or not the body part is an attachment based on the value of the Content-Disposition.

Note  Note
Since the value of the Content-Disposition header is needed, it is necessary to include the BodyStructure flag when fetching summary information from an IMailFolder.
See Also