JsonObject.AddRange Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
- Source:
- JsonObject.cs
public:
void AddRange(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Json::JsonValue ^>> ^ items);
public void AddRange (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,System.Json.JsonValue>> items);
member this.AddRange : seq<System.Collections.Generic.KeyValuePair<string, System.Json.JsonValue>> -> unit
Public Sub AddRange (items As IEnumerable(Of KeyValuePair(Of String, JsonValue)))
Parameters
- items
- IEnumerable<KeyValuePair<String,JsonValue>>
Remarks
Note
The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.
Applies to
.NET 9 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
- Source:
- JsonObject.cs
public:
void AddRange(... cli::array <System::Collections::Generic::KeyValuePair<System::String ^, System::Json::JsonValue ^>> ^ items);
public void AddRange (params System.Collections.Generic.KeyValuePair<string,System.Json.JsonValue>[] items);
member this.AddRange : System.Collections.Generic.KeyValuePair<string, System.Json.JsonValue>[] -> unit
Public Sub AddRange (ParamArray items As KeyValuePair(Of String, JsonValue)())
Parameters
- items
- KeyValuePair<String,JsonValue>[]
Remarks
Note
The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.
Applies to
.NET 9 (package-provided) and other versions
Product | Versions |
---|---|
.NET | 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: