IMime EntityIs Attachment Property
Get a value indicating whether this entity is an attachment.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
if this entity is an attachment; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
bool IsAttachment { get; set; }Property Value
Booleanif this entity is an attachment; otherwise, .
Remarks
If the Content-Disposition header is set and has a value of "attachment",
then this property returns . Otherwise, it is assumed that the
entity is not meant to be treated as an attachment.
Exceptions
| ObjectDisposedException | The IMimeEntity has been disposed. |