Click or drag to resize
MimeKit

SaslMechanismPlain(Encoding, NetworkCredential) 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,
	NetworkCredential credentials
)

Parameters

encoding  Encoding
The encoding to use for the user's credentials.
credentials  NetworkCredential
The user's credentials.
Exceptions
ExceptionCondition
ArgumentNullException

encoding is null.

-or-

credentials is null.

Remarks
Creates a new PLAIN SASL context.
See Also