Windows Secure Mime ContextGet Cms Recipient Method
Get the CmsRecipient for the specified mailbox.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
A CmsRecipient.
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
protected virtual CmsRecipient GetCmsRecipient(
MailboxAddress mailbox
)Parameters
- mailbox MailboxAddress
- The recipient's mailbox address.
Return Value
CmsRecipientA CmsRecipient.
Remarks
Constructs a CmsRecipient with the appropriate certificate for the specified mailbox.
If the mailbox is a SecureMailboxAddress, the Fingerprint property will be used instead of the mailbox address.
Exceptions
| CertificateNotFoundException | A certificate for the specified mailbox could not be found. |