Return the first certificate that is currently valid

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

Syntax

C#
public static X509Certificate2 FindUsable(
	IEnumerable<X509Certificate2> certs
)
Visual Basic
Public Shared Function FindUsable ( _
	certs As IEnumerable(Of X509Certificate2) _
) As X509Certificate2
Visual C++
public:
static X509Certificate2^ FindUsable(
	IEnumerable<X509Certificate2^>^ certs
)

Parameters

certs
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'X509Certificate2>)>)>
The certificates to search

Return Value

The first maching certificate, or null if none match

See Also