SystemTextJsonInputFormatter クラス

定義

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

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

コンストラクター

SystemTextJsonInputFormatter(JsonOptions, ILogger<SystemTextJsonInputFormatter>)

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

プロパティ

SerializerOptions

JsonSerializerOptions 構成するために使用される を取得します JsonSerializer

SupportedEncodings

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

(継承元 TextInputFormatter)
SupportedMediaTypes

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

(継承元 InputFormatter)

メソッド

CanRead(InputFormatterContext)

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

(継承元 InputFormatter)
CanReadType(Type)

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

(継承元 InputFormatter)
GetDefaultValueForType(Type)

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

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

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

(継承元 InputFormatter)
ReadAsync(InputFormatterContext)

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

(継承元 InputFormatter)
ReadRequestBodyAsync(InputFormatterContext)

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

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

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

SelectCharacterEncoding(InputFormatterContext)

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

(継承元 TextInputFormatter)

明示的なインターフェイスの実装

IInputFormatterExceptionPolicy.ExceptionPolicy

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

適用対象