Export (0) Print
Expand All

JsonObject.Add Method (String, JsonValue)

Adds a key/value pair to the JSON CLR object type.

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

public void Add(
	string key,
	JsonValue value
)

Parameters

key
Type: System.String
The key for the element added.
value
Type: System.Json.JsonValue
The JsonValue for the element added.

Implements

IDictionary<TKey, TValue>.Add(TKey, TValue)

ExceptionCondition
ArgumentNullException

key is null.

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