MailboxAddress(String, IEnumerableString, String) Constructor

Initialize a new instance of the MailboxAddress class.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public MailboxAddress(
	string? name,
	IEnumerable<string> route,
	string address
)

Parameters

name  String
The name of the mailbox.
route  IEnumerableString
The route of the mailbox.
address  String
The address of the mailbox.

Remarks

Creates a new MailboxAddress with the specified name, address and route.

Exceptions

ArgumentNullException

route is .

-or-

address is .

ParseException address is malformed.
ArgumentException route contains a null, empty or syntactically invalid domain.

See Also