Click or drag to resize
MimeKit

SaslMechanismOAuth2 Constructor (NetworkCredential)

Initializes a new instance of the SaslMechanismOAuth2 class.

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

Parameters

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