Gets the content description of the MIME part as a string.
A string containing the MIME part's content description taken from Content-Description header, or an empty string if Content-Description header is not set. The default value is an empty string.
See Attachment.Description for more information regarding Content-Description.
This sample loads the message from file and displays the description of the root MIME part of the message.
[C#] // 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.Description);
[Visual Basic] ' To use the code below, import MailBee namespaces at the top of your code. Imports MailBee Imports MailBee.Mime ' The actual code (put it into a method of your class). Dim msg As New MailMessage msg.LoadMessage("C:\Docs\TestMail.eml") Console.WriteLine(msg.MimePartTree.Description)
MimePart Class | MailBee.Mime Namespace