Click or drag to resize
MimeKit

GnuPGContextExport(IEnumerableMailboxAddress, CancellationToken) Method

Export the public keys 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 associated with the public keys to export.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

MimePart
A new MimePart instance containing the exported public keys.

Implements

ICryptographyContextExport(IEnumerableMailboxAddress, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullExceptionmailboxes is null.
ArgumentExceptionmailboxes was empty.
OperationCanceledException The operation was canceled via the cancellation token.
Remarks
Exports the public keys for the specified mailboxes.
See Also