Windows Secure Mime ContextGet Recipient Certificate Method
Get the certificate for the specified recipient.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
The certificate to use for the recipient; otherwise, or .
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
protected virtual X509Certificate2? GetRecipientCertificate(
MailboxAddress mailbox
)Parameters
- mailbox MailboxAddress
- The recipient's mailbox address.
Return Value
X509Certificate2The certificate to use for the recipient; otherwise, or .
Remarks
Gets the certificate for the specified recipient.
If the mailbox is a SecureMailboxAddress, the Fingerprint property will be used instead of the mailbox address.