Json.NET Documentation
Json.NET Documentation
API Reference
Newtonsoft.Json.Linq
JObject Class
JObject Methods
TryGetValue Method
TryGetValue Method (String, JToken)
TryGetValue Method (String, StringComparison, JToken)
JObject
TryGetValue Method (String, JToken
)
Tries to get the
JToken
with the specified property name.
Namespace:
Newtonsoft.Json.Linq
Assembly:
Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
Copy
public
bool
TryGetValue
(
string
propertyName
,
out
JToken
value
)
Parameters
propertyName
Type:
System
String
Name of the property.
value
Type:
Newtonsoft.Json.Linq
JToken
The value.
Return Value
Type:
Boolean
true
if a value was successfully retrieved; otherwise,
false
.
Implements
IDictionary
TKey, TValue
TryGetValue(TKey, TValue
)
See Also
Reference
JObject Class
TryGetValue Overload
Newtonsoft.Json.Linq Namespace
Json.NET Home