MimePartDisposition Property
Gets the content disposition of the MIME part.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public string Disposition { get; }

Property Value

Type: String
A string containing the MIME part's disposition taken from Content-Disposition header, or an empty string if Content-Disposition header is not set. The default value is an empty string.
Remarks

For instance, if the header is Content-Disposition: attachment; filename="image.jpg", the attachment value will be returned (additional parameters will be omitted).

If Disposition is inline or missing, this means this MIME part contains a resource which must be rendered when the message body gets displayed. If it's attachment, the resource is a file which does not need to be rendered in order to correctly display the message.

Examples
This sample loads the message from .EML file and displays disposition of the root MIME part of the message.
// 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).
MailMessage msg = new MailMessage();
msg.LoadMessage(@"C:\Docs\TestMail.eml");
Console.WriteLine(msg.MimePartTree.Disposition);
See Also