Click or drag to resize
MimeKit

SaslMechanismPlain Constructor (Encoding, NetworkCredential)

Initializes a new instance of the SaslMechanismPlain class.

Namespace:  MailKit.Security
Assembly:  MailKit (in MailKit.dll) Version: 2.10.0
Syntax
C#
public SaslMechanismPlain(
	Encoding encoding,
	NetworkCredential credentials
)

Parameters

encoding
Type: System.TextEncoding
The encoding to use for the user's credentials.
credentials
Type: System.NetNetworkCredential
The user's credentials.
Exceptions
ExceptionCondition
ArgumentNullException

encoding is null.

-or-

credentials is null.

Remarks
Creates a new PLAIN SASL context.
See Also