MailBee.NET Objects 4.0

CertificateStore.FindCertificates Method 

Searches the certificates in the store by the specified criteria.

public CertificateCollection FindCertificates(
   string substring,
   CertificateFields fields
);

Parameters

substring
The string to be searched in the specified fields of the certificates in the store.
fields
The set of certificate fields where to perform the search.

Return Value

A CertificateCollection of all matching certificates.

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.

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException substring is a null reference (Nothing in Visual Basic).

Example

The example is available in DeleteCertificate topic.

See Also

CertificateStore Class | MailBee.Security Namespace | CertificateFields | CertificateCollection