InternetAddress Constructor

Initialize a new instance of the InternetAddress class.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
protected InternetAddress(
	Encoding encoding,
	string? name
)

Parameters

encoding  Encoding
The character encoding to be used for encoding the name.
name  String
The name of the mailbox or group.

Remarks

Initializes the Encoding and Name properties of the internet address.

Exceptions

ArgumentNullException encoding is .

See Also