JsonArray Constructors

Definition

Overloads

JsonArray(Nullable<JsonNodeOptions>)

Initializes a new instance of the JsonArray class that is empty.

JsonArray(JsonNode[])

Initializes a new instance of the JsonArray class that contains items from the specified array.

JsonArray(JsonNodeOptions, JsonNode[])

Initializes a new instance of the JsonArray class that contains items from the specified params array.

JsonArray(Nullable<JsonNodeOptions>)

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

Initializes a new instance of the JsonArray class that is empty.

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)

Parameters

options
Nullable<JsonNodeOptions>

Options to control the behavior.

Applies to

JsonArray(JsonNode[])

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

Initializes a new instance of the JsonArray class that contains items from the specified array.

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())

Parameters

items
JsonNode[]

The items to add to the new JsonArray.

Applies to

JsonArray(JsonNodeOptions, JsonNode[])

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

Initializes a new instance of the JsonArray class that contains items from the specified params array.

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())

Parameters

options
JsonNodeOptions

Options to control the behavior.

items
JsonNode[]

The items to add to the new JsonArray.

Applies to