Click or drag to resize
MimeKit

OpenPgpContextExport(IEnumerablePgpPublicKey, CancellationToken) Method

Export the specified public keys.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public MimePart Export(
	IEnumerable<PgpPublicKey> keys,
	CancellationToken cancellationToken = default
)

Parameters

keys  IEnumerablePgpPublicKey
The public keys to export.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

MimePart
A new MimePart instance containing the exported public keys.
Exceptions
ExceptionCondition
ArgumentNullExceptionkeys is null.
OperationCanceledException The operation was canceled via the cancellation token.
Remarks
Exports the specified public keys.
See Also