Click or drag to resize
MimeKit

SaslMechanismLogin(Encoding, String, String) Constructor

Initializes a new instance of the SaslMechanismLogin class.

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

Parameters

encoding  Encoding
The encoding to use for the user's credentials.
userName  String
The user name.
password  String
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