ICryptographyContextExport Method

Exports the keys for the specified mailboxes.

Definition

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

Parameters

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

Return Value

MimePart
A new MimePart instance containing the exported keys.

Remarks

Exports the keys for the specified mailboxes.

Exceptions

ArgumentNullException mailboxes is .
ArgumentException mailboxes was empty.
NotSupportedException Exporting keys is not supported by this cryptography context.
OperationCanceledException The operation was cancelled via the cancellation token.

See Also