Читати англійською Редагувати

Поділитися через


JsonArray.Contains(JsonValue) Method

Definition

Determines whether the ICollection<T> contains a specific value.

C#
public bool Contains(System.Json.JsonValue item);

Parameters

item
JsonValue

The object to locate in the ICollection<T>.

Returns

true if item is found in the ICollection<T>; otherwise, false.

Implements

Remarks

Примітка

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

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