Click or drag to resize
MimeKit

SaslMechanismOAuth2(NetworkCredential) Constructor

Initializes a new instance of the SaslMechanismOAuth2 class.

Namespace: MailKit.Security
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public SaslMechanismOAuth2(
	NetworkCredential credentials
)

Parameters

credentials  NetworkCredential
The user's credentials.
Exceptions
ExceptionCondition
ArgumentNullExceptioncredentials is null.
Remarks
Creates a new XOAUTH2 SASL context.
See Also