Click or drag to resize
MimeKit

SaslMechanismLogin(Encoding, NetworkCredential) 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,
	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 LOGIN SASL context.
See Also