MimePartBoundary Property
Gets the string which delimits MIME parts nested into this part.

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

Property Value

Type: String
A string containing the delimiter separating MIME sub-parts of this part if. If this part is not multi-part, the return value is an empty string.

If the MIME part is multi-part (has one or more MIME parts nested into it), these sub-parts should be separated with a unique delimiter string. This string is specified in boundary attribute of the Content-Type header of the part header section.

For instance, if the MIME part header is Content-type: multipart/mixed; boundary="Boundary_(ID_frk7dChObvUn0w8y7BE4uQ)", the Boundary property will return Boundary_(ID_frk7dChObvUn0w8y7BE4uQ) value.

This sample loads the message from .EML file and displays the boundary used to delimit sub-root MIME parts of this message. If the message is not multi-part and consists of a root part only, the sample will print an empty line.
// 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();

// Show the boundary.
See Also