Json.NET Documentation
Json.NET Documentation
API Reference
Newtonsoft.Json.Linq
JArray Class
JArray Methods
Add Method
Clear Method
Contains Method
CopyTo Method
FromObject Method
GetEnumerator Method
IndexOf Method
Insert Method
Load Method
LoadAsync Method
Parse Method
Remove Method
RemoveAt Method
WriteTo Method
WriteToAsync Method
JArray
IndexOf Method
Determines the index of a specific item in the
JArray
.
Namespace:
Newtonsoft.Json.Linq
Assembly:
Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
Copy
public
int
IndexOf
(
JToken
item
)
Parameters
item
Type:
Newtonsoft.Json.Linq
JToken
The object to locate in the
JArray
.
Return Value
Type:
Int32
The index of
item
if found in the list; otherwise, -1.
Implements
IList
T
IndexOf(T)
See Also
Reference
JArray Class
Newtonsoft.Json.Linq Namespace
Json.NET Home