Click or drag to resize
MimeKit

OpenPgpContextImport(PgpPublicKeyRingBundle, CancellationToken) Method

Import the specified public keyring bundle.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public abstract void Import(
	PgpPublicKeyRingBundle bundle,
	CancellationToken cancellationToken = default
)

Parameters

bundle  PgpPublicKeyRingBundle
The bundle of public keyrings to import.
cancellationToken  CancellationToken  (Optional)
The cancellation token.
Exceptions
ExceptionCondition
ArgumentNullExceptionbundle is null.
IOException An error occured while saving the public key-ring.
OperationCanceledException The operation was canceled via the cancellation token.
Remarks
Imports the specified public keyring bundle.
See Also