JsonArray.Add 方法

定義

多載

Add(JsonNode)

JsonNode 加入至 JsonArray 的結尾。

Add<T>(T)

將物件加入至 JsonArray 的末端。

Add(JsonNode)

JsonNode 加入至 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)

參數

item
JsonNode

要新增至 JsonNode 尾端的 JsonArray

實作

適用於

Add<T>(T)

將物件加入至 JsonArray 的末端。

public:
generic <typename T>
 void Add(T value);
public void Add<T> (T? value);
member this.Add : 'T -> unit
Public Sub Add(Of T) (value As T)

類型參數

T

要加入的物件類型。

參數

value
T

要加入至 JsonArray 結尾的物件。

適用於