JsonObject.ContainsKey(String) 方法

定義

判斷 是否 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 尋找的屬性名稱。

傳回

Boolean

trueJsonObject如果 包含具有指定屬性名稱的專案,則為 , false 否則為 。

實作

例外狀況

propertyNamenull

適用於