EmailAddressDisplayName Property |
Gets or sets the name which is displayed with the e-mail address.
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public string DisplayName { get; set; }
Public Property DisplayName As String
Get
Set
Property Value
Type:
String
A string containing the display name of the current e-mail address. The default value is an empty string.
Remarks
For instance, if the full e-mail address string is Support Team <support@domain.com> (My Company),
the Support Team is a display name.
Examples This sample creates a new instance of the
EmailAddress object and displays the full address (including display name).
using MailBee;
using MailBee.Mime;
EmailAddress adr = new EmailAddress();
adr.DisplayName = "John Doe";
adr.Email = "doe@domain.com";
adr.Remarks = "ABC Company";
Console.WriteLine(adr.ToString());
Imports MailBee
Imports MailBee.Mime
Dim adr As New EmailAddress
adr.DisplayName = "John Doe"
adr.Email = "doe@domain.com"
adr.Remarks = "ABC Company"
Console.WriteLine(adr.ToString())
See Also