JsonObject.Item Property (String)

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

Gets or sets an indexer used to look up a key/value pair based on a specified key.

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

Syntax

'Declaration
Public Overrides NotOverridable Property Item ( _
    key As String _
) As JsonValue
public override sealed JsonValue this[
    string key
] { get; set; }

Parameters

Property Value

Type: System.Json.JsonValue
The JsonValue that contains the key/value pair looked up.

Implements

IDictionary<TKey, TValue>.Item[TKey]

Remarks

The JsonValue returned is cast is into one of the JSON CLR types (JsonPrimitive, JsonArray, or JsonObject) depending on the value contained in the key/value pair.

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.