InternetAddressName Property

Get or set the display name of the address.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public string? Name { get; set; }

Property Value

String
The name of the address.

Remarks

A name is optional and is typically set to the name of the person or group that own the internet address.

For example, the Name property of the following MailboxAddress would be "John Smith".

John Smith <j.smith@example.com>

Likewise, the Name property of the following GroupAddress would be "undisclosed-recipients".

undisclosed-recipients: Alice <alice@wonderland.com>, Bob <bob@the-builder.com>;

Leading and trailing ASCII spaces, tabs and line breaks are removed from the name when it is set.

See Also