Click or drag to resize
MimeKit

BouncyCastleSecureMimeContextExport Method

Export the certificates for the specified mailboxes.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public override MimePart Export(
	IEnumerable<MailboxAddress> mailboxes,
	CancellationToken cancellationToken = default
)

Parameters

mailboxes  IEnumerableMailboxAddress
The mailboxes.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

MimePart
A new ApplicationPkcs7Mime instance containing the exported keys.

Implements

ICryptographyContextExport(IEnumerableMailboxAddress, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullExceptionmailboxes is null.
ArgumentException No mailboxes were specified.
OperationCanceledException The operation was canceled via the cancellation token.
CertificateNotFoundException A certificate for one or more of the mailboxes could not be found.
CmsException An error occurred in the cryptographic message syntax subsystem.
Remarks
Exports the certificates for the specified mailboxes.
See Also