Language

TextInputFormatter クラス

定義

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

public ref class TextInputFormatter abstract : Microsoft::AspNetCore::Mvc::Formatters::InputFormatter
public abstract class TextInputFormatter : Microsoft.AspNetCore.Mvc.Formatters.InputFormatter
type TextInputFormatter = class
    inherit InputFormatter
Public MustInherit Class TextInputFormatter
Inherits InputFormatter
継承
TextInputFormatter
派生

コンストラクター

名前 説明
TextInputFormatter()

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

フィールド

名前 説明
UTF16EncodingLittleEndian

BOM で littleEndian バイト順を使用し、無効なバイトをスローする UTF16 エンコードを返します。

UTF8EncodingWithoutBOM

BOM を使用せずに UTF8 エンコードを返し、無効なバイトをスローします。

プロパティ

名前 説明
SupportedEncodings

この 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, Encoding)

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

ReadRequestBodyAsync(InputFormatterContext)

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

SelectCharacterEncoding(InputFormatterContext)

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

適用対象