NewtonsoftJsonInputFormatter クラス

定義

TextInputFormatter JSON コンテンツの 。

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

コンストラクター

NewtonsoftJsonInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, MvcOptions, MvcNewtonsoftJsonOptions)

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

プロパティ

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。 渡されるフォーマッタ コンテキストは、コンテキストに固有のシリアライザーを作成する機能を提供します。

CreateJsonSerializer(InputFormatterContext)

を取得するために逆シリアル化中に呼び出されます 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)

適用対象