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)

取得 和 支援的內容類型 IInputFormatterobjectTypecontentType 篩選清單。

ReadAsync(InputFormatterContext)

從要求本文讀取 物件。

ReadRequestBodyAsync(InputFormatterContext)

從要求本文讀取 物件。

適用於