Click or drag to resize
MimeKit

DefaultSecureMimeContextImport(X509Certificate, CancellationToken) Method

Import a certificate.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public override void Import(
	X509Certificate certificate,
	CancellationToken cancellationToken = default
)

Parameters

certificate  X509Certificate
The certificate.
cancellationToken  CancellationToken  (Optional)
The cancellation token.
Exceptions
ExceptionCondition
ArgumentNullExceptioncertificate is null.
OperationCanceledException The operation was canceled via the cancellation token.
Remarks
Imports the specified certificate into the database.
See Also