JsonArray Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
JsonArray(Nullable<JsonNodeOptions>) |
Initializes a new instance of the JsonArray class that is empty. |
JsonArray(ReadOnlySpan<JsonNode>) | |
JsonArray(JsonNode[]) |
Initializes a new instance of the JsonArray class that contains items from the specified array. |
JsonArray(JsonNodeOptions, ReadOnlySpan<JsonNode>) | |
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>)
public:
JsonArray(ReadOnlySpan<System::Text::Json::Nodes::JsonNode ^> items);
public JsonArray (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>
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
Applies to
JsonArray(JsonNodeOptions, ReadOnlySpan<JsonNode>)
public:
JsonArray(System::Text::Json::Nodes::JsonNodeOptions options, ReadOnlySpan<System::Text::Json::Nodes::JsonNode ^> items);
public JsonArray (System.Text.Json.Nodes.JsonNodeOptions options, 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
- items
- ReadOnlySpan<JsonNode>
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.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應