SaslMechanismIsSupported Method

Determine if the specified SASL mechanism is supported by MailKit.

Definition

Namespace: MailKit.Security
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

Boolean
if 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 .

See Also