Show / Hide Table of Contents

Method IndexOf

IndexOf(T)

Determines the index of a specific item in the collection.

Declaration
public int IndexOf(T item)
Parameters
Type Name Description
T item

The object to locate in the collection.

Returns
Type Description
System.Int32

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

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.13
.NET Framework100.0 - 100.8
.NET 5100.11
.NET Core 3.1100.7 - 100.8
Xamarin.Android100.0 - 100.13
Xamarin.iOS100.0 - 100.8
UWP100.0 - 100.15
Relevant samples
Route around barriers: Find a route that reaches all stops without crossing any barriers.
In This Article
Back to top Copyright © 2022 Esri.