Auf Englisch lesen Bearbeiten

Teilen über


JsonObject Constructors

Definition

Overloads

JsonObject(Nullable<JsonNodeOptions>)

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

JsonObject(IEnumerable<KeyValuePair<String,JsonNode>>, Nullable<JsonNodeOptions>)

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

JsonObject(Nullable<JsonNodeOptions>)

Source:
JsonObject.cs
Source:
JsonObject.cs
Source:
JsonObject.cs
Source:
JsonObject.cs
Source:
JsonObject.cs

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

public JsonObject (System.Text.Json.Nodes.JsonNodeOptions? options = default);

Parameters

options
Nullable<JsonNodeOptions>

Options to control the behavior.

Applies to

.NET 9 und andere Versionen
Produkt Versionen
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

JsonObject(IEnumerable<KeyValuePair<String,JsonNode>>, Nullable<JsonNodeOptions>)

Source:
JsonObject.cs
Source:
JsonObject.cs
Source:
JsonObject.cs
Source:
JsonObject.cs
Source:
JsonObject.cs

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

public JsonObject (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,System.Text.Json.Nodes.JsonNode?>> properties, System.Text.Json.Nodes.JsonNodeOptions? options = default);

Parameters

properties
IEnumerable<KeyValuePair<String,JsonNode>>

The properties to be added.

options
Nullable<JsonNodeOptions>

Options to control the behavior.

Applies to

.NET 9 und andere Versionen
Produkt Versionen
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)