JsonObject.SetNamedValue Method

Sets the value of the first JsonValue object with the specified name to the specified value. If no such object is found, a new name and JsonValue pair is inserted into the JSON object.

Syntax

public:
void SetNamedValue(
         String^ name,
         IJsonValue^ value
)  

Parameters

name
Type: String 

  The specified name.

value
Type: IJsonValue 

The specified value.

Requirements

Namespace: Windows.Data.Json

Metadata: windows.winmd

See also

Reference

JsonObject Class

JsonObject Members

Windows.Data.Json Namespace