CertificateStoreFindCertificates Method
Searches the certificates in the store by the specified criteria.

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public CertificateCollection FindCertificates(
	string substring,
	CertificateFields fields
)

Parameters

substring
Type: SystemString
The string to be searched in the specified fields of the certificates in the store.
fields
Type: MailBee.SecurityCertificateFields
The set of certificate fields where to perform the search.

Return Value

Type: CertificateCollection
A CertificateCollection of all matching certificates.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionsubstring is a null reference (Nothing in Visual Basic).
Remarks
Search is case-insensitive (ABC and abc are treated the same). For instance, if substring is John and the corresponding certificate field is "johndoe@company.com", this certificate will appear in the resulting collection.
Examples
The example is available in DeleteCertificate(Certificate) topic.
See Also