JsonSerializerOptions 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
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
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
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
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기