X509Certificate DatabaseFind(Mailbox Address, Date Time, Boolean, X509Certificate Record Fields) Method
Finds the certificate records for the specified mailbox.
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(
MailboxAddress mailbox,
DateTime now,
bool requirePrivateKey,
X509CertificateRecordFields fields
)Parameters
- mailbox MailboxAddress
- The mailbox.
- now DateTime
- The date and time.
- requirePrivateKey Boolean
- if a private key is required.
- fields X509CertificateRecordFields
- The desired fields.
Return Value
IEnumerableX509CertificateRecordThe matching certificate records populated with the desired fields.
Implements
IX509CertificateDatabaseFind(MailboxAddress, DateTime, Boolean, X509CertificateRecordFields)Remarks
Searches the database for certificates matching the specified mailbox that are valid
for the date and time specified, returning all matching records populated with the
desired fields.
Exceptions
| ArgumentNullException | mailbox is . |
| ObjectDisposedException | The X509CertificateDatabase has been disposed. |