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。