다음을 통해 공유


JsonObject.Clear Method

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

Removes all key/value pairs from the JSON CLR object.

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

Syntax

'Declaration
Public Sub Clear
public void Clear()

Implements

ICollection<T>.Clear()

Remarks

The Count property is set to 0, and references to other objects from elements of the collection are also released. The capacity remains unchanged.

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.