Click or drag to resize
MimeKit

GnuPGContextImport(PgpPublicKeyRingBundle, CancellationToken) Method

Import the specified public keyring bundle.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public override 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