Click or drag to resize
MimeKit

WindowsSecureMimeContextImport(StoreName, X509Certificate, CancellationToken) Method

Import the specified certificate.

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

Parameters

storeName  StoreName
The store to import the certificate into.
certificate  X509Certificate
The certificate.
cancellationToken  CancellationToken  (Optional)
The cancellation token.
Exceptions
ExceptionCondition
ArgumentNullExceptioncertificate is null.
OperationCanceledException The operation was cancelled via the cancellation token.
Remarks
Import the specified certificate.
See Also