JsonArray.RemoveAll(Func<JsonNode,Boolean>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
删除与指定谓词定义的条件匹配的所有元素。
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
参数
返回
从中 JsonArray移除的元素数。
例外
match 是 null。