Searches an System.Security.Cryptography.X509Certificates.X509Certificate2Collection object using the search criteria specified by the System.Security.Cryptography.X509Certificates.X509FindType enumeration and the findValue object.
- findType
One of the System.Security.Cryptography.X509Certificates.X509FindType values.
- findValue
The search criteria as an object.
- validOnly
true to allow only valid certificates to be returned from the search; otherwise, false.
![]()
An System.Security.Cryptography.X509Certificates.X509Certificate2Collection object.
Use this method to find System.Security.Cryptography.X509Certificates.X509Certificate2 objects if no user interaction is needed. Use the X509Certificate2Collection.Find(X509FindType, object, bool) method to allow the user to select System.Security.Cryptography.X509Certificates.X509Certificate2 objects.
Note that this method can be used in a cascading or nested style, narrowing the search criteria with each call to the method.