Click or drag to resize
Json.NET

JObjectProperty Method (String, StringComparison)

 
Gets the JProperty with the specified name. The exact name will be searched for first and if no matching property is found then the StringComparison will be used to match a property.

Namespace:  Newtonsoft.Json.Linq
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public JProperty Property(
	string name,
	StringComparison comparison
)

Parameters

name
Type: SystemString
The property name.
comparison
Type: SystemStringComparison
One of the enumeration values that specifies how the strings will be compared.

Return Value

Type: JProperty
A JProperty matched with the specified name or null.
See Also