| Visual Basic (Declaration) | |
|---|---|
Public Overloads Function IndexOf( _ ByVal value As Certificate _ ) As Integer | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As CertificateStore Dim value As Certificate Dim value As Integer value = instance.IndexOf(value) | |
| C# | |
|---|---|
public int IndexOf( Certificate value ) | |
| Managed Extensions for C++ | |
|---|---|
public: int IndexOf( Certificate* value ) | |
| C++/CLI | |
|---|---|
public: int IndexOf( Certificate^ value ) | |
Parameters
- value
- The Object to locate in the collection.
Return Value
The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1.The collection is searched forward starting at the first element and ending at the last element.
This method performs a linear search. On average, this is an O(n/2) operation, where n is Count. The longest search is an O(n) operation.
This method determines equality by calling Object.Equals.
Target Platforms: Microsoft .NET Framework 2.0