BodyPartBasicIsAttachment Property

Determines whether or not the body part is an attachment.

Definition

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

Property Value

Boolean
if this part is an attachment; otherwise, .

Remarks

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

  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