JsonArray.Item Property (Int32)

Silverlight

Gets or sets the JSON value at a specified index.

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

public override JsonValue this[
	int index
] { get; set; }

Parameters

index
Type: System.Int32
The zero-based index of the element to get or set.

Property Value

Type: System.Json.JsonValue
The JsonValue at the specified index.

Implements

IList<T>.Item[Int32]

ExceptionCondition
ArgumentOutOfRangeException

index is not a valid index for the array.

ArgumentException

The property is set and the value is of a type that is not assignable to the array.

This property provides the ability to access a specific element in the JsonArray by using the following syntax: myJsonArray[index].

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: