Click or drag to resize
MimeKit

SaslMechanismIsSupported Method

Determine if the specified SASL mechanism is supported by MailKit.

Namespace: MailKit.Security
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public static bool IsSupported(
	string mechanism
)

Parameters

mechanism  String
The name of the SASL mechanism.

Return Value

Boolean
true if the specified SASL mechanism is supported; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionmechanism is null.
Remarks
Use this method to make sure that a SASL mechanism is supported before calling Create(String, NetworkCredential).
See Also