Returns the index of the first certificate matching the supplied matcher.

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

Syntax

C#
public static int IndexOf(
	this X509Certificate2Collection certs,
	Predicate<X509Certificate2> matcher
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function IndexOf ( _
	certs As X509Certificate2Collection, _
	matcher As Predicate(Of X509Certificate2) _
) As Integer
Visual C++
[ExtensionAttribute]
public:
static int IndexOf(
	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 index of the first matching element will be returned.

Return Value

The zero-based index of the first matching element, or -1 if no matching elements are found

See Also