System.Security.Cryptography.X509Certificates.X509FindType.FindByTimeValid Field

The findValue parameter for the X509Certificate2Collection.Find(X509FindType, object, bool) method must be a DateTime value in local time. You can use DateTime.Now to find all the currently valid certificates.

Syntax

X509FindType FindByTimeValid

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