X509Certificate DatabaseFind(X509Certificate, X509Certificate Record Fields) Method
Find the specified certificate.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
The matching record if found; otherwise .
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public X509CertificateRecord? Find(
X509Certificate certificate,
X509CertificateRecordFields fields
)Parameters
- certificate X509Certificate
- The certificate.
- fields X509CertificateRecordFields
- The desired fields.
Return Value
X509CertificateRecordThe matching record if found; otherwise .
Implements
IX509CertificateDatabaseFind(X509Certificate, X509CertificateRecordFields)Remarks
Searches the database for the specified certificate, returning the matching
record with the desired fields populated.
Exceptions
| ArgumentNullException | certificate is . |
| ObjectDisposedException | The X509CertificateDatabase has been disposed. |