JsonObject.Insert(String, IJsonValue) JsonObject.Insert(String, IJsonValue) JsonObject.Insert(String, IJsonValue) JsonObject.Insert(String, IJsonValue) Method

Definition

Adds a new entry to the JsonObject.

public : Platform::Boolean Insert(Platform::String key, IJsonValue value)
bool Insert(winrt::hstring key, IJsonValue value) const;
// This member is not implemented in C#
' This member is not implemented in VB.Net
Parameters
key
String String

The key to insert.

value
IJsonValue IJsonValue

The IJsonValue to insert.

Returns
bool bool

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