AttachmentDescription Property |
Gets the description of the attachment.
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntaxpublic string Description { get; }
Public ReadOnly Property Description As String
Get
Property Value
Type:
String
A string containing the attachment description taken from Content-Description header, or an empty string if Content-Description header is not set.
The default value is an empty string.
ExamplesThis sample loads the message from .EML file and displays the content description of each attachment.
using MailBee;
using MailBee.Mime;
MailMessage msg = new MailMessage();
msg.LoadMessage(@"C:\Docs\TestMail.eml");
foreach (Attachment attach in msg.Attachments)
{
Console.WriteLine("Description is " + attach.Description);
}
Imports MailBee
Imports MailBee.Mime
Dim msg As New MailMessage
msg.LoadMessage("C:\Docs\TestMail.eml")
For Each attach As Attachment In msg.Attachments
Console.WriteLine("Description is " & attach.Description)
Next
See Also