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

Definition

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

C#
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

Produit Versions
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)