Click or drag to resize
MimeKit

SaslMechanismLogin Constructor (Encoding, String, String)

Initializes a new instance of the SaslMechanismLogin class.

Namespace:  MailKit.Security
Assembly:  MailKit (in MailKit.dll) Version: 2.10.0
Syntax
C#
public SaslMechanismLogin(
	Encoding encoding,
	string userName,
	string password
)

Parameters

encoding
Type: System.TextEncoding
The encoding to use for the user's credentials.
userName
Type: SystemString
The user name.
password
Type: SystemString
The password.
Exceptions
ExceptionCondition
ArgumentNullException

encoding is null.

-or-

userName is null.

-or-

password is null.

Remarks
Creates a new LOGIN SASL context.
See Also