Edit

Share via


JsonElement.GetPropertyCount Method

Definition

Gets the number of properties contained within the current object value.

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

Returns

The number of properties contained within the current object value.

Exceptions

The parent JsonDocument has been disposed.

Applies to