Click or drag to resize
Json.NET

JsonPropertyCollectionGetProperty Method

 
Gets a property by property name.

Namespace:  Newtonsoft.Json.Serialization
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public JsonProperty GetProperty(
	string propertyName,
	StringComparison comparisonType
)

Parameters

propertyName
Type: SystemString
The name of the property to get.
comparisonType
Type: SystemStringComparison
Type property name string comparison.

Return Value

Type: JsonProperty
A matching property if found.
See Also