X509CertificateCollection.IndexOf Method (X509Certificate)


Returns the index of the specified X509Certificate in the current X509CertificateCollection.

Namespace:   System.Security.Cryptography.X509Certificates
Assembly:  System (in System.dll)

public int IndexOf(
	X509Certificate value

Return Value

Type: System.Int32

The index of the X509Certificate specified by the value parameter in the X509CertificateCollection, if found; otherwise, -1.

.NET Framework
Available since 1.1
Return to top