Returns the first element matching the supplied predicate.

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

Syntax

C#
public static X509Certificate2 Find(
	this X509Certificate2Collection certs,
	Predicate<X509Certificate2> matcher
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function Find ( _
	certs As X509Certificate2Collection, _
	matcher As Predicate(Of X509Certificate2) _
) As X509Certificate2
Visual C++
[ExtensionAttribute]
public:
static X509Certificate2^ Find(
	X509Certificate2Collection^ certs, 
	Predicate<X509Certificate2^>^ matcher
)

Parameters

certs
Type: System.Security.Cryptography.X509Certificates..::..X509Certificate2Collection
The source collection to test.
matcher
Type: System..::..Predicate<(Of <(<'X509Certificate2>)>)>
The matching predicate for which the first matching element will be returned.

Return Value

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

See Also