Click or drag to resize
MimeKit

CryptographyContextSupports Method

Check whether the specified protocol is supported by the CryptographyContext.

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

Parameters

protocol  String
The protocol.

Return Value

Boolean
if the protocol is supported; otherwise,

Implements

ICryptographyContextSupports(String)
Exceptions
ExceptionCondition
ArgumentNullExceptionprotocol is .
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.
See Also