Return the first certificate that is valid on the supplied usageTime

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

Syntax

C#
public static X509Certificate2 FindUsable(
	this X509Certificate2Collection certs,
	DateTime usageTime
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function FindUsable ( _
	certs As X509Certificate2Collection, _
	usageTime As DateTime _
) As X509Certificate2
Visual C++
[ExtensionAttribute]
public:
static X509Certificate2^ FindUsable(
	X509Certificate2Collection^ certs, 
	DateTime usageTime
)

Parameters

certs
Type: System.Security.Cryptography.X509Certificates..::..X509Certificate2Collection
The certificates to search
usageTime
Type: System..::..DateTime
The date to test the supplied certificates against.

Return Value

The first maching certificate, or null if none match

See Also