JsonArray.Item Property (Int32)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets or sets the JSON value at a specified index.
Namespace: System.Json
Assembly: System.Json (in System.Json.dll)
Syntax
'Declaration
Public Overrides Property Item ( _
index As Integer _
) As JsonValue
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
Exceptions
Exception | Condition |
---|---|
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. |
Remarks
This property provides the ability to access a specific element in the JsonArray by using the following syntax: myJsonArray[index].
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.