Click or drag to resize
MimeKit

SaslMechanism(String, String) Constructor

Initializes a new instance of the SaslMechanism class.

Namespace: MailKit.Security
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
protected SaslMechanism(
	string userName,
	string password
)

Parameters

userName  String
The user name.
password  String
The password.
Exceptions
ExceptionCondition
ArgumentNullException

userName is null.

-or-

password is null.

Remarks
Creates a new SASL context.
See Also