System.Security.Cryptography.X509Certificates.X509FindType.FindByTimeExpired Field

The findValue parameter for the X509Certificate2Collection.Find(X509FindType, object, bool) method must be a DateTime value in local time. For example, you can find all the certificates that will be valid until the end of the year by eliminating the results of a X509Certificate2Collection.Find(X509FindType, object, bool) operation for X509FindType.FindByTimeExpired of the last day of the year from the results of a X509Certificate2Collection.Find(X509FindType, object, bool) operation for DateTime.Now.

Syntax

X509FindType FindByTimeExpired

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