ICryptography ContextSupports Method
Check whether the specified protocol is supported by the ICryptographyContext.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
if the protocol is supported; otherwise,
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
bool Supports(
string protocol
)Parameters
- protocol String
- The protocol.
Return Value
Booleanif the protocol is supported; otherwise,
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 . |