JsonArray 构造函数

定义

重载

JsonArray(Nullable<JsonNodeOptions>)

初始化为空的 JsonArray 类的新实例。

JsonArray(JsonNode[])

初始化包含指定数组中的项的 JsonArray 类的新实例。

JsonArray(JsonNodeOptions, JsonNode[])

初始化包含指定参数数组中的项的 JsonArray 类的新实例。

JsonArray(Nullable<JsonNodeOptions>)

初始化为空的 JsonArray 类的新实例。

public JsonArray (System.Text.Json.Nodes.JsonNodeOptions? options = default);
new System.Text.Json.Nodes.JsonArray : Nullable<System.Text.Json.Nodes.JsonNodeOptions> -> System.Text.Json.Nodes.JsonArray
Public Sub New (Optional options As Nullable(Of JsonNodeOptions) = Nothing)

参数

options
Nullable<JsonNodeOptions>

用于控制行为的选项。

适用于

JsonArray(JsonNode[])

初始化包含指定数组中的项的 JsonArray 类的新实例。

public:
 JsonArray(... cli::array <System::Text::Json::Nodes::JsonNode ^> ^ items);
public JsonArray (params System.Text.Json.Nodes.JsonNode?[] items);
new System.Text.Json.Nodes.JsonArray : System.Text.Json.Nodes.JsonNode[] -> System.Text.Json.Nodes.JsonArray
Public Sub New (ParamArray items As JsonNode())

参数

items
JsonNode[]

要添加到新 JsonArray项的项。

适用于

JsonArray(JsonNodeOptions, JsonNode[])

初始化包含指定参数数组中的项的 JsonArray 类的新实例。

public:
 JsonArray(System::Text::Json::Nodes::JsonNodeOptions options, ... cli::array <System::Text::Json::Nodes::JsonNode ^> ^ items);
public JsonArray (System.Text.Json.Nodes.JsonNodeOptions options, params System.Text.Json.Nodes.JsonNode?[] items);
new System.Text.Json.Nodes.JsonArray : System.Text.Json.Nodes.JsonNodeOptions * System.Text.Json.Nodes.JsonNode[] -> System.Text.Json.Nodes.JsonArray
Public Sub New (options As JsonNodeOptions, ParamArray items As JsonNode())

参数

options
JsonNodeOptions

用于控制行为的选项。

items
JsonNode[]

要添加到新 JsonArray项的项。

适用于