Language

InputFormatter クラス

定義

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

public ref class InputFormatter abstract : Microsoft::AspNetCore::Mvc::ApiExplorer::IApiRequestFormatMetadataProvider, Microsoft::AspNetCore::Mvc::Formatters::IInputFormatter
public abstract class InputFormatter : Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestFormatMetadataProvider, Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter
type InputFormatter = class
    interface IInputFormatter
    interface IApiRequestFormatMetadataProvider
type InputFormatter = class
    interface IApiRequestFormatMetadataProvider
    interface IInputFormatter
Public MustInherit Class InputFormatter
Implements IApiRequestFormatMetadataProvider, IInputFormatter
継承
InputFormatter
派生
実装

コンストラクター

名前 説明
InputFormatter()

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

プロパティ

名前 説明
SupportedMediaTypes

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

メソッド

名前 説明
CanRead(InputFormatterContext)

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

CanReadType(Type)

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

GetDefaultValueForType(Type)

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

GetSupportedContentTypes(String, Type)

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

ReadAsync(InputFormatterContext)

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

ReadRequestBodyAsync(InputFormatterContext)

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

適用対象