MailBee.NET Objects 4.0

MimePart.Description Property

Gets the content description of the MIME part as a string.

public string Description {get;}

Property Value

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.

Remarks

See Attachment.Description for more information regarding Content-Description.

Example

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)

See Also

MimePart Class | MailBee.Mime Namespace