Condividi tramite


JsonObject Constructor (IEnumerable<KeyValuePair<String, JsonValue>>)

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

Creates an instance of the JsonObject class initialized with a IEnumerable<T> collection of key/value pairs.

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

Syntax

'Declaration
Public Sub New ( _
    items As IEnumerable(Of KeyValuePair(Of String, JsonValue)) _
)
public JsonObject(
    IEnumerable<KeyValuePair<string, JsonValue>> items
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

items is nulla null reference (Nothing in Visual Basic).

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.