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

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 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