Microsoft.AspNetCore.Mvc.Formatters 名前空間

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

クラス

Name 説明
FormatFilter

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

FormatterCollection<TFormatter>

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

FormatterMappings

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

HttpNoContentOutputFormatter

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

InputFormatter

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

InputFormatterContext

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

InputFormatterException

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

InputFormatterResult

ReadAsync(InputFormatterContext)操作の結果。

JsonInputFormatter

JSON コンテンツの TextInputFormatter 。

JsonOutputFormatter

JSON コンテンツの TextOutputFormatter 。

JsonPatchInputFormatter

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

JsonSerializerSettingsProvider

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

MediaTypeCollection

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

NewtonsoftJsonInputFormatter

JSON コンテンツの TextInputFormatter 。

NewtonsoftJsonOutputFormatter

JSON コンテンツの TextOutputFormatter 。

NewtonsoftJsonPatchInputFormatter

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

OutputFormatter

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

OutputFormatterCanWriteContext

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

OutputFormatterWriteContext

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

StreamOutputFormatter

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

StringOutputFormatter

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

SystemTextJsonInputFormatter

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

SystemTextJsonOutputFormatter

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

TextInputFormatter

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

TextOutputFormatter

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

XmlDataContractSerializerInputFormatter

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

XmlDataContractSerializerOutputFormatter

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

XmlSerializerInputFormatter

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

XmlSerializerOutputFormatter

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

構造体

Name 説明
MediaType

メディアの種類の値。

MediaTypeSegmentWithQuality

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

インターフェイス

Name 説明
IInputFormatter

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

IInputFormatterExceptionPolicy

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

IOutputFormatter

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

列挙型

Name 説明
InputFormatterExceptionPolicy

モデル バインド システムが IInputFormatterによってスローされた例外を解釈する方法を決定するポリシーのセットを定義します。 <seealso cref="T:Microsoft.AspNetCore.Mvc.Formatters.IInputFormatterExceptionPolicy"></seealso>

注釈

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