JsonInputFormatter クラス

定義

TextInputFormatter JSON コンテンツの 。

public ref class JsonInputFormatter : Microsoft::AspNetCore::Mvc::Formatters::TextInputFormatter
public ref class JsonInputFormatter : Microsoft::AspNetCore::Mvc::Formatters::TextInputFormatter, Microsoft::AspNetCore::Mvc::Formatters::IInputFormatterExceptionPolicy
public class JsonInputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter
public class JsonInputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter, Microsoft.AspNetCore.Mvc.Formatters.IInputFormatterExceptionPolicy
type JsonInputFormatter = class
    inherit TextInputFormatter
type JsonInputFormatter = class
    inherit TextInputFormatter
    interface IInputFormatterExceptionPolicy
Public Class JsonInputFormatter
Inherits TextInputFormatter
Public Class JsonInputFormatter
Inherits TextInputFormatter
Implements IInputFormatterExceptionPolicy
継承
派生
実装

コンストラクター

JsonInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider)
古い.

JsonInputFormatter の新しいインスタンスを初期化します。

JsonInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean)
古い.

JsonInputFormatter の新しいインスタンスを初期化します。

JsonInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean, Boolean)
古い.

JsonInputFormatter の新しいインスタンスを初期化します。

JsonInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, MvcOptions, MvcJsonOptions)

JsonInputFormatter の新しいインスタンスを初期化します。

プロパティ

ExceptionPolicy

本文モデル バインダーですべての例外を処理する必要があるかどうかを示すフラグを取得します。 例外が処理された場合、本文モデル バインダーは例外をモデル状態エラーに変換します。それ以外の場合は例外の伝達が許可されます。

SerializerSettings

Newtonsoft.Json.JsonSerializerSettings 構成するために使用される を取得します Newtonsoft.Json.JsonSerializer

SupportedEncodings

この TextInputFormatterでサポートされている文字エンコーディングの変更可能なコレクションを取得します。 エンコードは、データの読み取り時に使用されます。

(継承元 TextInputFormatter)
SupportedMediaTypes

この InputFormatterでサポートされているメディア型要素の変更可能なコレクションを取得します。

(継承元 InputFormatter)

メソッド

CanRead(InputFormatterContext)

IInputFormatter の オブジェクトcontextModelTypeを逆シリアル化できるかどうかを判断します。

(継承元 InputFormatter)
CanReadType(Type)

指定 InputFormatter した のオブジェクトを逆シリアル化できるかどうかを判断します type

(継承元 InputFormatter)
CreateJsonSerializer()

を取得するために逆シリアル化中に呼び出されます Newtonsoft.Json.JsonSerializer

GetDefaultValueForType(Type)

指定した型の既定値を取得します。 本文にコンテンツが含まれない場合に既定値を返すために使用します。

(継承元 InputFormatter)
GetSupportedContentTypes(String, Type)

および contentTypeの でサポートされているコンテンツ タイプのフィルター処理されたIInputFormatterリストをobjectType取得します。

(継承元 InputFormatter)
ReadAsync(InputFormatterContext)

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

(継承元 InputFormatter)
ReadRequestBodyAsync(InputFormatterContext)

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

(継承元 TextInputFormatter)
ReadRequestBodyAsync(InputFormatterContext, Encoding)

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

ReleaseJsonSerializer(JsonSerializer)

serializer のインスタンスを解放します。

SelectCharacterEncoding(InputFormatterContext)

の文字セットにcontext基づいて をEncoding返します。

(継承元 TextInputFormatter)

適用対象