InputFormatter.ReadAsync(InputFormatterContext) 方法

定义

从请求正文中读取 对象。

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Mvc::Formatters::InputFormatterResult ^> ^ ReadAsync(Microsoft::AspNetCore::Mvc::Formatters::InputFormatterContext ^ context);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult> ReadAsync (Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context);
abstract member ReadAsync : Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult>
override this.ReadAsync : Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult>
Public Overridable Function ReadAsync (context As InputFormatterContext) As Task(Of InputFormatterResult)

参数

返回

完成 Task 时反序列化请求正文的 。

实现

适用于