JsonOptions 類別

定義

public ref class JsonOptions
public class JsonOptions
type JsonOptions = class
Public Class JsonOptions
繼承
JsonOptions

建構函式

JsonOptions()

設定 SystemTextJsonInputFormatterSystemTextJsonOutputFormatter 的選項。

屬性

AllowInputFormatterExceptionMessages

取得或設定旗標,以判斷 是否將 來自 SystemTextJsonInputFormatter JSON 還原序列化的錯誤訊息新增至 ModelStateDictionary 。 如果 false 為 ,則會改用泛型錯誤訊息。

JsonSerializerOptions

JsonSerializerOptions取得 和 SystemTextJsonOutputFormatter 所使用的 SystemTextJsonInputFormatter

適用於