Edit

Share via


JsonArray Constructors

Definition

Overloads

JsonArray(Nullable<JsonNodeOptions>)

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

JsonArray(ReadOnlySpan<JsonNode>)

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

JsonArray(JsonNode[])

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

JsonArray(JsonNodeOptions, ReadOnlySpan<JsonNode>)

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

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

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

public:
 JsonArray(ReadOnlySpan<System::Text::Json::Nodes::JsonNode ^> items);
public JsonArray (scoped ReadOnlySpan<System.Text.Json.Nodes.JsonNode?> items);
new System.Text.Json.Nodes.JsonArray : ReadOnlySpan<System.Text.Json.Nodes.JsonNode> -> System.Text.Json.Nodes.JsonArray
Public Sub New (items As ReadOnlySpan(Of JsonNode))

Parameters

items
ReadOnlySpan<JsonNode>

The items to add to the new JsonArray.

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, ReadOnlySpan<JsonNode>)

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

public:
 JsonArray(System::Text::Json::Nodes::JsonNodeOptions options, ReadOnlySpan<System::Text::Json::Nodes::JsonNode ^> items);
public JsonArray (System.Text.Json.Nodes.JsonNodeOptions options, scoped ReadOnlySpan<System.Text.Json.Nodes.JsonNode?> items);
new System.Text.Json.Nodes.JsonArray : System.Text.Json.Nodes.JsonNodeOptions * ReadOnlySpan<System.Text.Json.Nodes.JsonNode> -> System.Text.Json.Nodes.JsonArray
Public Sub New (options As JsonNodeOptions, items As ReadOnlySpan(Of JsonNode))

Parameters

options
JsonNodeOptions

Options to control the behavior.

items
ReadOnlySpan<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