JsonObject.ContainsKey(String) Method

Definition

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

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

Prodotto Versioni
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)