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

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Removes the first occurrence of a specific object from the ICollection<T>.

bool ICollection<KeyValuePair<string,JsonValue>>.Remove(System.Collections.Generic.KeyValuePair<string,System.Json.JsonValue> item);

Parameters

item
KeyValuePair<String,JsonValue>

The object to remove from the ICollection<T>.

Returns

true if item was successfully removed from the ICollection<T>; otherwise, false. This method also returns false if item is not found in the original ICollection<T>.

Implements

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Applies to

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