JsonValue.SetValue Method (String, Object)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Sets the Json value with specified key and value.
Namespace: System.Json
Assembly: System.Json (in System.Json.dll)
Syntax
'Declaration
Public Overridable Function SetValue ( _
key As String, _
value As Object _
) As JsonValue
public virtual JsonValue SetValue(
string key,
Object value
)
public:
virtual JsonValue^ SetValue(
String^ key,
Object^ value
)
abstract SetValue :
key:string *
value:Object -> JsonValue
override SetValue :
key:string *
value:Object -> JsonValue
public function SetValue(
key : String,
value : Object
) : JsonValue
Parameters
- key
Type: System.String
the key.
- value
Type: System.Object
The set value.
Return Value
Type: System.Json.JsonValue
The Json value.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.