Click or drag to resize
MimeKit

SaslMechanismOAuth2 Constructor (Uri, String, String)

Note: This API is now obsolete.

Initializes a new instance of the SaslMechanismOAuth2 class.

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

Parameters

uri
Type: SystemUri
The URI of the service.
userName
Type: SystemString
The user name.
auth_token
Type: SystemString
The auth token.
Exceptions
ExceptionCondition
ArgumentNullException

uri is null.

-or-

userName is null.

-or-

auth_token is null.

Remarks
Creates a new XOAUTH2 SASL context.
See Also