IndexOf Method (X509Certificate2)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns the index of the specified X509Certificate in the current X509Certificate2Collection.
Namespace: System.Security.Cryptography.X509Certificates
Assembly: System.Security (in System.Security.dll)
Syntax
'Declaration
Public Function IndexOf ( _
value As X509Certificate2 _
) As Integer
public int IndexOf(
X509Certificate2 value
)
public:
int IndexOf(
X509Certificate2^ value
)
member IndexOf :
value:X509Certificate2 -> int
public function IndexOf(
value : X509Certificate2
) : int
Parameters
- value
Type: System.Security.Cryptography.X509Certificates. . :: . .X509Certificate2
The X509Certificate to locate.
Return Value
Type: System. . :: . .Int32
The index of the X509Certificate, if found; otherwise, -1.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.