Tests if a certificate has expired at the current time.

Namespace: NHINDirect.Certificates
Assembly: nhinCommon (in nhinCommon.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static bool HasExpired(
	this X509Certificate2 cert
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function HasExpired ( _
	cert As X509Certificate2 _
) As Boolean
Visual C++
[ExtensionAttribute]
public:
static bool HasExpired(
	X509Certificate2^ cert
)

Return Value

true if the certificate is currently expired, false if not

See Also