JsonOutputFormatter 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
TextOutputFormatterJSON 內容的 。
public ref class JsonOutputFormatter : Microsoft::AspNetCore::Mvc::Formatters::TextOutputFormatter
public class JsonOutputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextOutputFormatter
type JsonOutputFormatter = class
inherit TextOutputFormatter
Public Class JsonOutputFormatter
Inherits TextOutputFormatter
- 繼承
建構函式
| 名稱 | Description |
|---|---|
| JsonOutputFormatter(JsonSerializerSettings, ArrayPool<Char>) |
初始化新的 JsonOutputFormatter 執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| PublicSerializerSettings |
Newtonsoft.Json.JsonSerializerSettings取得用來設定 的 Newtonsoft.Json.JsonSerializer 。 |
| SerializerSettings |
Newtonsoft.Json.JsonSerializerSettings取得用來設定 的 Newtonsoft.Json.JsonSerializer 。 |
| SupportedEncodings |
取得這個 TextOutputFormatter 支援的可變動字元編碼集合。 寫入資料時會使用編碼。 (繼承來源 TextOutputFormatter) |
| SupportedMediaTypes |
取得這個 OutputFormatter 所支援的可變動媒體類型專案集合。 (繼承來源 OutputFormatter) |