JsonArray.Add Metod

Definition

Överlagringar

Name Description
Add(JsonNode)

Lägger till en JsonNode i slutet av JsonArray.

Add<T>(T)

Lägger till ett objekt i slutet av JsonArray.

Add(JsonNode)

Källa:
JsonArray.IList.cs
Källa:
JsonArray.IList.cs
Källa:
JsonArray.IList.cs
Källa:
JsonArray.IList.cs
Källa:
JsonArray.IList.cs
Källa:
JsonArray.IList.cs
Källa:
JsonArray.IList.cs

Lägger till en JsonNode i slutet av JsonArray.

public:
 virtual void Add(System::Text::Json::Nodes::JsonNode ^ item);
public void Add(System.Text.Json.Nodes.JsonNode? item);
abstract member Add : System.Text.Json.Nodes.JsonNode -> unit
override this.Add : System.Text.Json.Nodes.JsonNode -> unit
Public Sub Add (item As JsonNode)

Parametrar

item
JsonNode

Som JsonNode ska läggas till i slutet av JsonArray.

Implementeringar

Gäller för

Add<T>(T)

Källa:
JsonArray.cs
Källa:
JsonArray.cs
Källa:
JsonArray.cs
Källa:
JsonArray.cs
Källa:
JsonArray.cs
Källa:
JsonArray.cs
Källa:
JsonArray.cs

Lägger till ett objekt i slutet av JsonArray.

public:
generic <typename T>
 void Add(T value);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating JsonValue instances with non-primitive types requires generating code at runtime.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating JsonValue instances with non-primitive types is not compatible with trimming. It can result in non-primitive types being serialized, which may have their members trimmed.")]
public void Add<T>(T? value);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating JsonValue instances with non-primitive types is not compatible with trimming. It can result in non-primitive types being serialized, which may have their members trimmed.")]
public void Add<T>(T? value);
public void Add<T>(T? value);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating JsonValue instances with non-primitive types requires generating code at runtime.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating JsonValue instances with non-primitive types is not compatible with trimming. It can result in non-primitive types being serialized, which may have their members trimmed.")>]
member this.Add : 'T -> unit
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating JsonValue instances with non-primitive types is not compatible with trimming. It can result in non-primitive types being serialized, which may have their members trimmed.")>]
member this.Add : 'T -> unit
member this.Add : 'T -> unit
Public Sub Add(Of T) (value As T)

Typparametrar

T

Vilken typ av objekt som ska läggas till.

Parametrar

value
T

Objektet som ska läggas till i slutet av JsonArray.

Attribut

Gäller för