Click or drag to resize
MimeKit

ICryptographyContextSupports Method

Check whether or not the specified protocol is supported by the ICryptographyContext.

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

Parameters

protocol  String
The protocol.

Return Value

Boolean
true if the protocol is supported; otherwise false
Exceptions
ExceptionCondition
ArgumentNullExceptionprotocol is null.
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