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

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


JsonObject.ContainsKey(String) Method

Definition

Determines whether the JsonObject contains an element with the specified property name.

C#
public bool ContainsKey(string propertyName);

Parameters

propertyName
String

The property name to locate in the JsonObject.

Returns

true if the JsonObject contains an element with the specified property name; otherwise, false.

Implements

Exceptions

propertyName is null.

Applies to

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