Click or drag to resize
MimeKit

WindowsSecureMimeContextGetCmsRecipient Method

Get the CmsRecipient for the specified mailbox.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
protected virtual CmsRecipient GetCmsRecipient(
	MailboxAddress mailbox
)

Parameters

mailbox  MailboxAddress
The recipient's mailbox address.

Return Value

CmsRecipient
A CmsRecipient.
Exceptions
ExceptionCondition
CertificateNotFoundException A certificate for the specified mailbox could not be found.
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.

See Also