Return the first maching element whose certificate thumbprint matches the supplied thumbprint

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

Syntax

C#
public static X509Certificate2 FindByThumbprint(
	this X509Certificate2Collection certs,
	string thumbprint
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function FindByThumbprint ( _
	certs As X509Certificate2Collection, _
	thumbprint As String _
) As X509Certificate2
Visual C++
[ExtensionAttribute]
public:
static X509Certificate2^ FindByThumbprint(
	X509Certificate2Collection^ certs, 
	String^ thumbprint
)

Parameters

certs
Type: System.Security.Cryptography.X509Certificates..::..X509Certificate2Collection
The source collection to test.
thumbprint
Type: System..::..String
The certificate thumbprint, as a string, to test against the source collection

Return Value

The first matching element, or null if no matching elements are found.

See Also