Click or drag to resize
JsonDynamicAdd Method (String, JsonValue)
Adds an member with the specified key to this object.

Namespace: Dextronet.Jsonie
Assembly: Dextronet.Jsonie (in Dextronet.Jsonie.dll) Version: 1.0.0.0
Syntax
public void Add(
	string key,
	JsonValue value
)

Parameters

key
Type: SystemString
The key of the element to add.
value
Type: Dextronet.JsonieJsonValue
The value of the element to add. The value can be null.
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
ArgumentExceptionAn property with the same key already exists.
InvalidCastExceptionIf this object does not wrap JsonObject.
See Also