JsonObject.SetNamedValue method

Applies to Windows and Windows Phone

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: System.String [.NET] | Platform::String [C++]

The specified name.

value

Type: IJsonValue

The specified value.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Data.Json
Windows::Data::Json [C++]

Metadata

Windows.winmd

See also

JsonObject

 

 

Show:
© 2014 Microsoft