MimeEntityIsAttachment Property

Get a value indicating whether this MimePart is an attachment.

Definition

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

Property Value

Boolean
if this MimePart is an attachment; otherwise, .

Implements

IMimeEntityIsAttachment

Remarks

If the Content-Disposition header is set and has a value of "attachment", then this property returns . Otherwise, it is assumed that the MimePart is not meant to be treated as an attachment.

Exceptions

ObjectDisposedException The MimeEntity has been disposed.

See Also