Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


JsonArray.Add Method

Definition

Overloads

Add(JsonNode)

Adds a JsonNode to the end of the JsonArray.

Add<T>(T)

Adds an object to the end of the JsonArray.

Add(JsonNode)

Source:
JsonArray.IList.cs
Source:
JsonArray.IList.cs
Source:
JsonArray.IList.cs
Source:
JsonArray.IList.cs
Source:
JsonArray.IList.cs
Source:
JsonArray.IList.cs

Adds a JsonNode to the end of the JsonArray.

C#
public void Add(System.Text.Json.Nodes.JsonNode? item);

Parameters

item
JsonNode

The JsonNode to be added to the end of the JsonArray.

Implements

Applies to

.NET 10 és más verziók
Termék Verziók
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

Add<T>(T)

Source:
JsonArray.cs
Source:
JsonArray.cs
Source:
JsonArray.cs
Source:
JsonArray.cs
Source:
JsonArray.cs
Source:
JsonArray.cs

Adds an object to the end of the JsonArray.

C#
public void Add<T>(T? value);

Type Parameters

T

The type of object to be added.

Parameters

value
T

The object to be added to the end of the JsonArray.

Applies to

.NET 10 és más verziók
Termék Verziók
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)