Compartir a través de


JsonValue.Item Property (Int32)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

This indexer is not supported for this base class and throws an exception.

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

Syntax

'Declaration
Public Overridable Property Item ( _
    index As Integer _
) As JsonValue
public virtual 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
A JsonValue.

Remarks

The exception thrown is the InvalidOperationException. This method is overloaded in the implementation of the JsonArray class, which inherits from this class.

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.