语言

JsonElement.GetPropertyCount 方法

定义

获取当前对象值中包含的属性数。

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

返回

当前对象值中包含的属性数。

例外

JsonDocument父级已被释放。

适用于