X509Certificate DatabaseFind(ISelectorX509Certificate, Boolean, X509Certificate Record Fields) Method
Finds the certificate records matching the specified selector.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
The matching certificate records populated with the desired fields.
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public IEnumerable<X509CertificateRecord> Find(
ISelector<X509Certificate>? selector,
bool trustedAnchorsOnly,
X509CertificateRecordFields fields
)Parameters
- selector ISelectorX509Certificate
- The match selector or to match all certificates.
- trustedAnchorsOnly Boolean
- if only trusted anchor certificates should be returned.
- fields X509CertificateRecordFields
- The desired fields.
Return Value
IEnumerableX509CertificateRecordThe matching certificate records populated with the desired fields.
Implements
IX509CertificateDatabaseFind(ISelectorX509Certificate, Boolean, X509CertificateRecordFields)Remarks
Searches the database for certificate records matching the selector, returning all
the matching records populated with the desired fields.
Exceptions
| ObjectDisposedException | The X509CertificateDatabase has been disposed. |