Sasl MechanismIs Supported Method
Determine if the specified SASL mechanism is supported by MailKit.
Definition
Namespace: MailKit.Security
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
if the specified SASL mechanism is supported; otherwise, .
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public static bool IsSupported(
string mechanism
)Parameters
- mechanism String
- The name of the SASL mechanism.
Return Value
Booleanif the specified SASL mechanism is supported; otherwise, .
Remarks
Use this method to make sure that a SASL mechanism is supported before calling
Create(String, NetworkCredential).
Exceptions
| ArgumentNullException | mechanism is . |