AttachmentIsInline Property |
Indicates if the attachment is inline.
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public bool IsInline { get; }
Public ReadOnly Property IsInline As Boolean
Get
Property Value
Type:
Booleantrue if the attachment is inline; otherwise,
false.
Remarks
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.
Examples This sample loads the message from .EML file and displays the filenames of all inline attachments.
using MailBee;
using MailBee.Mime;
MailMessage msg = new MailMessage();
msg.LoadMessage(@"C:\Docs\TestMail.eml");
foreach (Attachment attach in msg.Attachments)
{
if (attach.IsInline)
{
Console.WriteLine("Attachment " + attach.Filename + " is inline.");
}
}
Imports MailBee
Imports MailBee.Mime
Dim msg As New MailMessage
msg.LoadMessage("C:\Docs\TestMail.eml")
For Each attach As Attachment In msg.Attachments
If attach.IsInline Then
Console.WriteLine("Attachment " & attach.Filename & " is inline.")
End If
Next
See Also