Json.NET - Quick Starts & API Documentation
IndexOf Method (item)
NamespacesNewtonsoft.Json.LinqJArrayIndexOf(JToken)
Determines the index of a specific item in the IList<(Of <(T>)>).
Declaration Syntax
C#Visual BasicVisual C++
public int IndexOf(
	JToken item
)
Public Function IndexOf ( _
	item As JToken _
) As Integer
public:
virtual int IndexOf(
	JToken^ item
) sealed
Parameters
item (JToken)
The object to locate in the IList<(Of <(T>)>).
Return Value
The index of item if found in the list; otherwise, -1.

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 3.5.0.0 (3.5.0.0)