IndexOf Method

SynchronizedReadOnlyCollection<T>.IndexOf Method

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

Returns the index of the first occurrence of a value in the collection.

Namespace:  System.Collections.Generic
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public int IndexOf(
	T item
)

Parameters

item
Type: T

Return Value

Type: System.Int32
The zero-based index of the first occurrence of the value in the collection.

Implements

IList<T>.IndexOf(T)

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft