InputFormatter 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从请求正文中读取 对象。
public ref class InputFormatter abstract : Microsoft::AspNetCore::Mvc::ApiExplorer::IApiRequestFormatMetadataProvider, Microsoft::AspNetCore::Mvc::Formatters::IInputFormatterpublic abstract class InputFormatter : Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestFormatMetadataProvider, Microsoft.AspNetCore.Mvc.Formatters.IInputFormattertype InputFormatter = class
    interface IInputFormatter
    interface IApiRequestFormatMetadataProvidertype InputFormatter = class
    interface IApiRequestFormatMetadataProvider
    interface IInputFormatterPublic MustInherit Class InputFormatter
Implements IApiRequestFormatMetadataProvider, IInputFormatter- 继承
- 
				InputFormatter
- 派生
- 实现
构造函数
| InputFormatter() | 从请求正文中读取 对象。 | 
属性
| SupportedMediaTypes | 获取此 InputFormatter支持的媒体类型元素的可变集合。 | 
方法
| CanRead(InputFormatterContext) | 确定这IInputFormatter是否可以反序列化 的 ModelType对象 | 
| CanReadType(Type) | 确定这 InputFormatter 是否可以反序列化给定  | 
| GetDefaultValueForType(Type) | 获取给定类型的默认值。 用于在正文不包含任何内容时返回默认值。 | 
| GetSupportedContentTypes(String, Type) | 获取 和  | 
| ReadAsync(InputFormatterContext) | 从请求正文中读取 对象。 | 
| ReadRequestBodyAsync(InputFormatterContext) | 从请求正文中读取 对象。 |