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

Definition

Removes a key and value from the JsonObject.

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

Parameters

item
KeyValuePair<String,JsonNode>

The KeyValuePair structure representing the property name and value to remove from the JsonObject.

Returns

true if the element is successfully removed; 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)