 | ICryptographyContextCanEncrypt Method |
Check whether the cryptography context can encrypt to a particular recipient.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntaxbool CanEncrypt(
MailboxAddress mailbox,
CancellationToken cancellationToken = default
)
Parameters
- mailbox MailboxAddress
- The recipient's mailbox address.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
Boolean if the cryptography context can be used to encrypt to the designated recipient; otherwise,
.
Exceptions
Remarks
Checks whether the cryptography context can be used to encrypt to a particular recipient.
See Also