JsonArray.Create(JsonElement, Nullable<JsonNodeOptions>) Method
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.
Initializes a new instance of the JsonArray class that contains items from the specified JsonElement.
public static System.Text.Json.Nodes.JsonArray? Create (System.Text.Json.JsonElement element, System.Text.Json.Nodes.JsonNodeOptions? options = default);
static member Create : System.Text.Json.JsonElement * Nullable<System.Text.Json.Nodes.JsonNodeOptions> -> System.Text.Json.Nodes.JsonArray
Public Shared Function Create (element As JsonElement, Optional options As Nullable(Of JsonNodeOptions) = Nothing) As JsonArray
Parameters
- element
- JsonElement
The JsonElement.
- options
- Nullable<JsonNodeOptions>
Options to control the behavior.
Returns
The new instance of the JsonArray class that contains items from the specified JsonElement.
Exceptions
The element
is not a Array.
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage (pull requests). Pour plus d’informations, consultez notre guide du contributeur.