Windows Secure Mime ContextImport(Store Name, X509Certificate, Cancellation Token) Method
Import the specified certificate.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
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.
Remarks
Imports the specified certificate.
Exceptions
| ArgumentNullException | certificate is . |
| OperationCanceledException | The operation was cancelled via the cancellation token. |