System.Net.Mail.MailAddress.DisplayName Property

Gets the display name composed from the display name and address information specified when this instance was created.

Syntax

public string DisplayName { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Display names that contain non-ASCII characters are returned in human-readable form. Use the MailAddress.ToString method to get the encoded form of the MailAddress.DisplayName.

Some software programs that are used to read e-mail display the MailAddress.DisplayName property value instead of, or in addition to, the e-mail address.

Requirements

Namespace: System.Net.Mail
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0