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
。