Click or drag to resize
MimeKit

MailboxAddress Constructor (String)

Initializes a new instance of the MailboxAddress class.

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 2.1.0.0
Syntax
C#
public MailboxAddress(
	string address
)

Parameters

address
Type: SystemString
The address of the mailbox.
Exceptions
ExceptionCondition
ArgumentNullExceptionaddress is null.
ParseExceptionaddress is malformed.
Remarks

Creates a new MailboxAddress with the specified address.

Note Note

The address must be in the form user@example.com.

This method cannot be used to parse a free-form email address that includes the name or encloses the address in angle brackets.

To parse a free-form email address, use Parse(String) instead.

See Also