Export (0) Print
Expand All

JsonArray.IndexOf Method

Searches for a specified object and returns the zero-based index of its first occurrence within the JsonArray.

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

public int IndexOf(
	JsonValue item
)

Parameters

item
Type: System.Json.JsonValue
The JsonValue object to look up.

Return Value

Type: System.Int32
The zero-based index of the first occurrence of item within the JsonArray, if found; otherwise, –1.

Implements

IList<T>.IndexOf(T)

The JsonArray is searched forward starting at the first element and ending at the last element.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft