Open Pgp ContextExport(IEnumerablePgpPublicKey, Stream, Boolean, Cancellation Token) Method
Export the specified public keys.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
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
- if the output should be armored; otherwise, .
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Remarks
Exports the specified public keys.
Exceptions
| ArgumentNullException |
keys is . -or- stream is . |
| IOException | An I/O error occurred. |
| OperationCanceledException | The operation was canceled via the cancellation token. |