Json.NET Documentation
Json.NET Documentation
API Reference
Newtonsoft.Json.Linq
JObject Class
JObject Methods
Add Method
Add Method (String, JToken)
JObject
Add Method (String, JToken)
Adds the specified property name.
Namespace:
Newtonsoft.Json.Linq
Assembly:
Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
Copy
public
void
Add
(
string
propertyName
,
JToken
value
)
Parameters
propertyName
Type:
System
String
Name of the property.
value
Type:
Newtonsoft.Json.Linq
JToken
The value.
Implements
IDictionary
TKey, TValue
Add(TKey, TValue)
See Also
Reference
JObject Class
Add Overload
Newtonsoft.Json.Linq Namespace
Json.NET Home