SmtpUtf8AddressException(MailboxAddress, SmtpUtf8AddressError) Constructor

Initializes a new instance of the SmtpUtf8AddressException class.

Definition

Namespace: MailKit.Net.Smtp
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public SmtpUtf8AddressException(
	MailboxAddress mailbox,
	SmtpUtf8AddressError error
)

Parameters

mailbox  MailboxAddress
The invalid mailbox.
error  SmtpUtf8AddressError
The reason that the mailbox address is invalid.

Remarks

Creates a new SmtpUtf8AddressException with a default error message.

Exceptions

ArgumentNullException mailbox is .

See Also