共用方式為


JsonValue.Count Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

This method is not supported and throws an exception when called.

Namespace:  System.Json
Assembly:  System.Json (in System.Json.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property Count As Integer
public virtual int Count { get; }

Property Value

Type: System.Int32
Returns Int32.

Remarks

The exception it throws is the InvalidOperationException. This property is overloaded in JsonArray and JsonObject classes, which inherit from this class, where it returns the number of items in the respective collections.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.