JsonObject.Insert Method

Adds a new entry to the JsonObject.

Syntax

public:
bool Insert(
         String^ key,
         IJsonValue^ value
)  

Parameters

key
Type: String 

  The key to insert.

value
Type: IJsonValue 

The IJsonValue to insert.

Return value

Type: bool 

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

Requirements

Namespace: Windows.Data.Json

Metadata: windows.winmd

See also

Reference

JsonObject Class

JsonObject Members

Windows.Data.Json Namespace