Edytuj

Udostępnij za pośrednictwem


JsonObject.Create(JsonElement, Nullable<JsonNodeOptions>) Method

Definition

Initializes a new instance of the JsonObject class that contains properties from the specified JsonElement.

public static System.Text.Json.Nodes.JsonObject? 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.JsonObject
Public Shared Function Create (element As JsonElement, Optional options As Nullable(Of JsonNodeOptions) = Nothing) As JsonObject

Parameters

element
JsonElement

The JsonElement.

options
Nullable<JsonNodeOptions>

Options to control the behavior.

Returns

The new instance of the JsonObject class that contains properties from the specified JsonElement.

Applies to