ArraySegment<(Of <(T>)>).IList<(Of <(T>)>).IndexOf Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Determines the index of a specific item in the array segment.

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

Syntax

Private Function IndexOf ( _
    item As T _
) As Integer Implements IList(Of T).IndexOf
int IList<T>.IndexOf(
    T item
)

Parameters

  • item
    Type: T
    The object to locate in the array segment.

Return Value

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

Implements

IList<(Of <(T>)>)..::.IndexOf(T)

Remarks

This member is an explicit interface member implementation. It can be used only when the ArraySegment<(Of <(T>)>) instance is cast to an IList<(Of <(T>)>) interface.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

ArraySegment<(Of <(T>)>) Structure

System Namespace