System.Security.Cryptography.X509Certificates.X509FindType.FindBySubjectName Field

The findValue parameter for the X509Certificate2Collection.Find(X509FindType, object, bool) method must be a string representing the subject name of the certificate. This is a less specific search than that provided by the X509FindType.FindBySubjectDistinguishedName enumeration value. Using the X509FindType.FindBySubjectName value, the X509Certificate2Collection.Find(X509FindType, object, bool) method performs a case-insensitive string comparison using the supplied value. For example, if you pass "MyCert" to the X509Certificate2Collection.Find(X509FindType, object, bool) method, it will find all certificates with the subject name containing that string, regardless of other subject values. Searching by distinguished name is a more precise search.

Syntax

X509FindType FindBySubjectName

Requirements

Namespace: System.Security.Cryptography.X509Certificates
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0