AttachmentIsInline Property
Indicates if the attachment is inline.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
public bool IsInline { get; }

Property Value

Type: Boolean
true if the attachment is inline; otherwise, false.
Attachment is considered inline when it should be rendered along with the message body. For instance, images and sounds in an HTML message are inline attachments while .zip archives are not. Inline attachments often have non-empty ContentID value which is used to reference such attachments within HTML body of the message.
This sample loads the message from .EML file and displays the filenames of all inline attachments.
// To use the code below, import MailBee namespaces at the top of your code.
using MailBee;
using MailBee.Mime;

// The actual code (put it into a method of your class)

// Load the message from file.
MailMessage msg = new MailMessage();

// For every attachment...
foreach (Attachment attach in msg.Attachments)
    // ...when attachment is inline...
    if (attach.IsInline)
        // ...then show its filename.
        Console.WriteLine("Attachment " + attach.Filename + " is inline.");
See Also