Click or drag to resize
MimeKit

SaslMechanismPlain(Encoding, String, String) Constructor

Initializes a new instance of the SaslMechanismPlain class.

Namespace: MailKit.Security
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
public SaslMechanismPlain(
	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 PLAIN SASL context.
See Also