Windows apps
Collapse the table of content
Expand the table of content

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)

public:
int IndexOf(
	X509Certificate2^ value
)

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.

Show:
© 2017 Microsoft