Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IList.IndexOf Method

When implemented by a class, determines the index of a specific item in the IList.

[Visual Basic]
Function IndexOf( _
   ByVal value As Object _
) As Integer
[C#]
int IndexOf(
   object value
);
[C++]
int IndexOf(
   Object* value
);
[JScript]
function IndexOf(
   value : Object
) : int;

Parameters

value
The Object to locate in the IList.

Return Value

The index of value if found in the list; otherwise, -1.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

IList Interface | IList Members | System.Collections Namespace

Show:
© 2017 Microsoft