Microsoft.AspNetCore.Mvc.Formatters 名前空間

JSON および XML ベースの入力フォーマッタと出力フォーマッタを返す型を提供します。

クラス

FormatFilter

ルート データまたはクエリ文字列の書式値を使用して、アクションから返された にコンテンツ タイプを ObjectResult 設定するフィルター。

FormatterCollection<TFormatter>

フォーマッタのコレクションを表します。

FormatterMappings

URL 形式と対応するメディアの種類の間のマッピングを指定するために使用します。

HttpNoContentOutputFormatter

コンテンツが null の場合、状態コードを 204 に設定します。

InputFormatter

要求本文からオブジェクトを読み取ります。

InputFormatterContext

要求本文を オブジェクトに逆シリアル化するために入力フォーマッタによって使用されるコンテキスト オブジェクト。

InputFormatterException

入力が予期された形式でない場合にによって IInputFormatter スローされる例外。

InputFormatterResult

操作の ReadAsync(InputFormatterContext) 結果。

JsonInputFormatter

TextInputFormatter JSON コンテンツの 。

JsonOutputFormatter

TextOutputFormatter JSON コンテンツの 。

JsonPatchInputFormatter

TextInputFormatter JSON Patch (application/json-patch+json) コンテンツの 。

JsonSerializerSettingsProvider

を提供 Newtonsoft.Json.JsonSerializerSettingsするヘルパー クラス。

MediaTypeCollection

メディアの種類のコレクション。

NewtonsoftJsonInputFormatter

TextInputFormatter JSON コンテンツの 。

NewtonsoftJsonOutputFormatter

TextOutputFormatter JSON コンテンツの 。

NewtonsoftJsonPatchInputFormatter

TextInputFormatter JSON Patch (application/json-patch+json) コンテンツの 。

OutputFormatter

オブジェクトを出力ストリームに書き込みます。

OutputFormatterCanWriteContext

CanWriteResult(OutputFormatterCanWriteContext)コンテキスト オブジェクト。

OutputFormatterWriteContext

WriteAsync(OutputFormatterWriteContext)コンテキスト オブジェクト。

StreamOutputFormatter

要求されたコンテンツ タイプに関係なく、常に を応答にコピー Stream します。

StringOutputFormatter

TextOutputFormatter単純なテキスト コンテンツの 。

SystemTextJsonInputFormatter

TextInputFormatter 使用 JsonSerializerする JSON コンテンツの 。

SystemTextJsonOutputFormatter

TextOutputFormatter 使用 JsonSerializerする JSON コンテンツの 。

TextInputFormatter

テキスト形式で要求本文からオブジェクトを読み取ります。

TextOutputFormatter

指定されたテキスト形式のオブジェクトを出力ストリームに書き込みます。

XmlDataContractSerializerInputFormatter

このクラスは、 を使用して、厳密に型指定されたオブジェクトへの入力 XML データの逆シリアル化を DataContractSerializer処理します。

XmlDataContractSerializerOutputFormatter

このクラスは、 を使用して XML へのオブジェクトのシリアル化を処理します。 DataContractSerializer

XmlSerializerInputFormatter

このクラスは、 を使用して、厳密に型指定されたオブジェクトへの入力 XML データの逆シリアル化を処理します。 XmlSerializer

XmlSerializerOutputFormatter

このクラスは、 を使用して XML へのオブジェクトのシリアル化を処理します。 XmlSerializer

構造体

MediaType

メディアの種類の値。

MediaTypeSegmentWithQuality

関連する品質を持つメディアの種類。

インターフェイス

IInputFormatter

要求本文からオブジェクトを読み取ります。

IInputFormatterExceptionPolicy

すべての例外を本文モデル バインダーで処理するかどうかを示すために を実装できるポリシー IInputFormatter。 既定では、既定値はすべて IInputFormatterこのインターフェイスを実装し、既定値は です MalformedInputExceptions

IOutputFormatter

オブジェクトを出力ストリームに書き込みます。

列挙型

InputFormatterExceptionPolicy

モデル バインド システムが によってスローされる例外を解釈する方法を決定するポリシーのセットを IInputFormatter定義します。

注釈

応答データの書式設定の詳細については、「応答データの 書式設定」を参照してください。