CryptographyContextSupports Method

Check whether the specified protocol is supported by the CryptographyContext.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public abstract bool Supports(
	string protocol
)

Parameters

protocol  String
The protocol.

Return Value

Boolean
if the protocol is supported; otherwise,

Implements

ICryptographyContextSupports(String)

Remarks

Used in order to make sure that the protocol parameter value specified in either a multipart/signed or multipart/encrypted part is supported by the supplied cryptography context.

Exceptions

ArgumentNullException protocol is .

See Also