| Visual Basic (Declaration) | |
|---|---|
Public Overloads Overrides Function IndexOf( _ ByVal value As Object _ ) As Integer | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As MailboxCollection Dim value As Object Dim value As Integer value = instance.IndexOf(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