Mime EntityIs Attachment 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
if this MimePart is an attachment; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public bool IsAttachment { get; set; }Property Value
Booleanif this MimePart is an attachment; otherwise, .
Implements
IMimeEntityIsAttachmentRemarks
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. |