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; }

Parameters

key
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.

Implements

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.

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:
© 2014 Microsoft