JsonArray.RemoveAll(Func<JsonNode,Boolean>) 方法

定义

删除与指定谓词定义的条件匹配的所有元素。

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

参数

match
Func<JsonNode,Boolean>

定义要移除的元素条件的谓词。

返回

从中 JsonArray移除的元素数。

例外

matchnull

适用于