Click or drag to resize
MimeKit

MailboxAddress Constructor (Encoding, String, String)

Initializes a new instance of the MailboxAddress class.

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 2.2.0
Syntax
C#
public MailboxAddress(
	Encoding encoding,
	string name,
	string address
)

Parameters

encoding
Type: System.TextEncoding
The character encoding to be used for encoding the name.
name
Type: SystemString
The name of the mailbox.
address
Type: SystemString
The address of the mailbox.
Exceptions
ExceptionCondition
ArgumentNullException

encoding is null.

-or-

address is null.

ParseExceptionaddress is malformed.
Remarks
Creates a new MailboxAddress with the specified name and address. The specified text encoding is used when encoding the name according to the rules of rfc2047.
See Also