Click or drag to resize
MimeKit

SaslMechanismAnonymous(Encoding, String) Constructor

Initializes a new instance of the SaslMechanismAnonymous class.

Namespace: MailKit.Security
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public SaslMechanismAnonymous(
	Encoding encoding,
	string userName
)

Parameters

encoding  Encoding
The encoding to use for the user's credentials.
userName  String
The user name.
Exceptions
ExceptionCondition
ArgumentNullException

encoding is null.

-or-

userName is null.

Remarks
Creates a new ANONYMOUS SASL context.
See Also