Click or drag to resize
MimeKit

SaslMechanismPlain Constructor (Uri, Encoding, String, String)

Note: This API is now obsolete.

Initializes a new instance of the SaslMechanismPlain class.

Namespace:  MailKit.Security
Assembly:  MailKit (in MailKit.dll) Version: 2.10.0
Syntax
C#
[ObsoleteAttribute("Use SaslMechanismPlain(Encoding, string, string) instead.")]
public SaslMechanismPlain(
	Uri uri,
	Encoding encoding,
	string userName,
	string password
)

Parameters

uri
Type: SystemUri
The URI of the service.
encoding
Type: System.TextEncoding
The encoding to use for the user's credentials.
userName
Type: SystemString
The user name.
password
Type: SystemString
The password.
Exceptions
ExceptionCondition
ArgumentNullException

uri is null.

-or-

encoding is null.

-or-

userName is null.

-or-

password is null.

Remarks
Creates a new PLAIN SASL context.
See Also