Прочетете на английски Редактиране

Споделяне чрез


JsonArray.Contains(JsonNode) Method

Definition

Determines whether an element is in the JsonArray.

C#
public bool Contains(System.Text.Json.Nodes.JsonNode? item);

Parameters

item
JsonNode

The object to locate in the JsonArray.

Returns

true if item is found in the JsonArray; otherwise, false.

Implements

Applies to

Продукт Версии
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)