Export (0) Print
Expand All

JsonObject.Item Property (String)

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)

public override sealed JsonValue this[
	string key
] { get; set; }


Type: System.String
The key of the pair to look up.

Property Value

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


IDictionary<TKey, TValue>.Item[TKey]

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.


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

© 2015 Microsoft