JsonObject.Insert(String, IJsonValue) Method

Definition

Adds a new entry to the JsonObject.

C#
public bool Insert(string key, IJsonValue value);

Parameters

key
String

The key to insert.

value
IJsonValue

The IJsonValue to insert.

Returns

Boolean

true if calling the method replaced a value that already existed for the key; false if calling the method defined a new key.

Implements

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100