Click or drag to resize
MimeKit

WindowsSecureMimeContextImport(StoreName, X509Certificate2, CancellationToken) Method

Import the specified certificate.

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

Parameters

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