Click or drag to resize
MimeKit

CryptographyContextExport Method

Exports the keys for the specified mailboxes.

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

Parameters

mailboxes
Type: System.Collections.GenericIEnumerableMailboxAddress
The mailboxes.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: MimePart
A new MimePart instance containing the exported keys.
Exceptions
ExceptionCondition
ArgumentNullExceptionmailboxes is null.
ArgumentExceptionmailboxes was empty.
NotSupportedException Exporting keys is not supported by this cryptography context.
OperationCanceledException The operation was cancelled via the cancellation token.
Remarks
Exports the keys for the specified mailboxes.
See Also