語言

JsonElement.GetPropertyCount 方法

定義

取得目前物件值中包含的屬性數量。

public:
 int GetPropertyCount();
public int GetPropertyCount();
member this.GetPropertyCount : unit -> int
Public Function GetPropertyCount () As Integer

傳回

目前物件值中包含的屬性數量。

例外狀況

這個值的 ValueKind 值不是 Object。

父母 JsonDocument 已被處理掉。

適用於