Поделиться через


X509Certificate2Collection.IndexOf Method (X509Certificate2)

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

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

Syntax

public int IndexOf (
         X509Certificate2 value
)

Parameters

  • value
    The X509Certificate to locate.

Return Value

The index of the X509Certificate, if found; otherwise, -1.

Version Information

Available in the .NET Micro Framework version 4.2.

See Also

Reference

X509Certificate2Collection Class
X509Certificate2Collection Members
System.Security.Cryptography.X509Certificates Namespace