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(
	this X509Certificate2Collection certs
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function FindUsable ( _
	certs As X509Certificate2Collection _
) As X509Certificate2
Visual C++
[ExtensionAttribute]
public:
static X509Certificate2^ FindUsable(
	X509Certificate2Collection^ certs
)

Return Value

The first maching certificate, or null if none match

See Also