JsonObject.ICollection<KeyValuePair<String,JsonNode>>.Contains Method

Definition

Determines whether the JsonObject contains a specific property name and JsonNode reference.

bool ICollection<KeyValuePair<string,JsonNode>>.Contains(System.Collections.Generic.KeyValuePair<string,System.Text.Json.Nodes.JsonNode> item);

Parameters

item
KeyValuePair<String,JsonNode>

The element to locate in the JsonObject.

Returns

true if the JsonObject contains an element with the property name; otherwise, false.

Implements

Applies to

Product Versions
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)