편집

다음을 통해 공유


JsonSerializerOptions Constructors

Definition

Overloads

JsonSerializerOptions()

Initializes a new instance of the JsonSerializerOptions class.

JsonSerializerOptions(JsonSerializerDefaults)

Constructs a new JsonSerializerOptions instance with a predefined set of options determined by the specified JsonSerializerDefaults.

JsonSerializerOptions(JsonSerializerOptions)

Copies the options from a JsonSerializerOptions instance to a new instance.

JsonSerializerOptions()

Source:
JsonSerializerOptions.cs
Source:
JsonSerializerOptions.cs
Source:
JsonSerializerOptions.cs
Source:
JsonSerializerOptions.cs
Source:
JsonSerializerOptions.cs

Initializes a new instance of the JsonSerializerOptions class.

public:
 JsonSerializerOptions();
public JsonSerializerOptions ();
Public Sub New ()

Applies to

JsonSerializerOptions(JsonSerializerDefaults)

Source:
JsonSerializerOptions.cs
Source:
JsonSerializerOptions.cs
Source:
JsonSerializerOptions.cs
Source:
JsonSerializerOptions.cs
Source:
JsonSerializerOptions.cs

Constructs a new JsonSerializerOptions instance with a predefined set of options determined by the specified JsonSerializerDefaults.

public:
 JsonSerializerOptions(System::Text::Json::JsonSerializerDefaults defaults);
public JsonSerializerOptions (System.Text.Json.JsonSerializerDefaults defaults);
new System.Text.Json.JsonSerializerOptions : System.Text.Json.JsonSerializerDefaults -> System.Text.Json.JsonSerializerOptions
Public Sub New (defaults As JsonSerializerDefaults)

Parameters

defaults
JsonSerializerDefaults

The JsonSerializerDefaults to reason about.

Applies to

JsonSerializerOptions(JsonSerializerOptions)

Source:
JsonSerializerOptions.cs
Source:
JsonSerializerOptions.cs
Source:
JsonSerializerOptions.cs
Source:
JsonSerializerOptions.cs
Source:
JsonSerializerOptions.cs

Copies the options from a JsonSerializerOptions instance to a new instance.

public:
 JsonSerializerOptions(System::Text::Json::JsonSerializerOptions ^ options);
public JsonSerializerOptions (System.Text.Json.JsonSerializerOptions options);
new System.Text.Json.JsonSerializerOptions : System.Text.Json.JsonSerializerOptions -> System.Text.Json.JsonSerializerOptions
Public Sub New (options As JsonSerializerOptions)

Parameters

options
JsonSerializerOptions

The options instance to copy options from.

Exceptions

options is null.

Applies to