JsonArray.IndexOf Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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)
Syntax
'Declaration
Public Function IndexOf ( _
item As JsonValue _
) As Integer
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
Remarks
The JsonArray is searched forward starting at the first element and ending at the last element.
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.