JsonObject.ContainsKey(String) 方法

定义

确定是否 IDictionary<TKey,TValue> 包含带有指定键的元素。

public:
 override bool ContainsKey(System::String ^ key);
public override bool ContainsKey (string key);
override this.ContainsKey : string -> bool
Public Overrides Function ContainsKey (key As String) As Boolean

参数

key
String

要在 IDictionary<TKey,TValue> 中定位的键。

返回

如果 true 包含具有键的元素,则为 IDictionary<TKey,TValue>;否则为 false

实现

注解

注意

命名空间 System.Json 是为不再受支持的 Silverlight 设计的。 若要处理 JSON,建议改用 命名空间中的 System.Text.Json API。

适用于