Click or drag to resize
MimeKit

X509CertificateDatabaseFind(MailboxAddress, DateTime, Boolean, X509CertificateRecordFields) Method

Finds the certificate records for the specified mailbox.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntax
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

IEnumerableX509CertificateRecord
The matching certificate records populated with the desired fields.

Implements

IX509CertificateDatabaseFind(MailboxAddress, DateTime, Boolean, X509CertificateRecordFields)
Exceptions
ExceptionCondition
ArgumentNullExceptionmailbox is .
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.
See Also