JsonObject.ContainsKey(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定 JsonObject 包含具有指定属性名称的元素。
public:
virtual bool ContainsKey(System::String ^ propertyName);
public bool ContainsKey(string propertyName);
abstract member ContainsKey : string -> bool
override this.ContainsKey : string -> bool
Public Function ContainsKey (propertyName As String) As Boolean
参数
- propertyName
- String
要查找的属性 JsonObject名称。
返回
true 如果包含具有指定属性名称的元素,则为 JsonObject ;否则为 false。
实现
例外
propertyName 是 null。