Edit

Share via


JsonArray.RemoveAll(Func<JsonNode,Boolean>) Method

Definition

Removes all the elements that match the conditions defined by the specified predicate.

public:
 int RemoveAll(Func<System::Text::Json::Nodes::JsonNode ^, bool> ^ match);
public int RemoveAll(Func<System.Text.Json.Nodes.JsonNode?,bool> match);
member this.RemoveAll : Func<System.Text.Json.Nodes.JsonNode, bool> -> int
Public Function RemoveAll (match As Func(Of JsonNode, Boolean)) As Integer

Parameters

match
Func<JsonNode,Boolean>

The predicate that defines the conditions of the elements to remove.

Returns

The number of elements removed from the JsonArray.

Exceptions

match is null.

Applies to