Share via


IndexOf Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Determines the index of a specific item in the IList.

Namespace:  System.Collections
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Function IndexOf ( _
    value As Object _
) As Integer
int IndexOf(
    Object value
)
int IndexOf(
    Object^ value
)
abstract IndexOf : 
        value:Object -> int 
function IndexOf(
    value : Object
) : int

Parameters

Return Value

Type: System. . :: . .Int32
The index of value if found in the list; otherwise, -1.

.NET Framework Security

See Also

Reference

IList Interface

System.Collections Namespace