Click or drag to resize
MimeKit

OpenPgpContextExport(IEnumerablePgpPublicKey, Stream, Boolean, CancellationToken) Method

Export the specified public keys.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public void Export(
	IEnumerable<PgpPublicKey> keys,
	Stream stream,
	bool armor,
	CancellationToken cancellationToken = default
)

Parameters

keys  IEnumerablePgpPublicKey
The public keys to export.
stream  Stream
The output stream.
armor  Boolean
true if the output should be armored; otherwise, false.
cancellationToken  CancellationToken  (Optional)
The cancellation token.
Exceptions
ExceptionCondition
ArgumentNullException

keys is null.

-or-

stream is null.

IOException An I/O error occurred.
OperationCanceledException The operation was canceled via the cancellation token.
Remarks
Exports the specified public keys.
See Also