TextInputFormatter.ReadRequestBodyAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ReadRequestBodyAsync(InputFormatterContext) |
从请求正文中读取 对象。 |
ReadRequestBodyAsync(InputFormatterContext, Encoding) |
从请求正文中读取 对象。 |
ReadRequestBodyAsync(InputFormatterContext)
- Source:
- TextInputFormatter.cs
- Source:
- TextInputFormatter.cs
- Source:
- TextInputFormatter.cs
从请求正文中读取 对象。
public:
override System::Threading::Tasks::Task<Microsoft::AspNetCore::Mvc::Formatters::InputFormatterResult ^> ^ ReadRequestBodyAsync(Microsoft::AspNetCore::Mvc::Formatters::InputFormatterContext ^ context);
public override System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult> ReadRequestBodyAsync (Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context);
override this.ReadRequestBodyAsync : Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult>
Public Overrides Function ReadRequestBodyAsync (context As InputFormatterContext) As Task(Of InputFormatterResult)
参数
返回
完成 Task 时反序列化请求正文的 。
适用于
ReadRequestBodyAsync(InputFormatterContext, Encoding)
- Source:
- TextInputFormatter.cs
- Source:
- TextInputFormatter.cs
- Source:
- TextInputFormatter.cs
从请求正文中读取 对象。
public:
abstract System::Threading::Tasks::Task<Microsoft::AspNetCore::Mvc::Formatters::InputFormatterResult ^> ^ ReadRequestBodyAsync(Microsoft::AspNetCore::Mvc::Formatters::InputFormatterContext ^ context, System::Text::Encoding ^ encoding);
public abstract System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult> ReadRequestBodyAsync (Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context, System.Text.Encoding encoding);
override this.ReadRequestBodyAsync : Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext * System.Text.Encoding -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.Formatters.InputFormatterResult>
Public MustOverride Function ReadRequestBodyAsync (context As InputFormatterContext, encoding As Encoding) As Task(Of InputFormatterResult)
参数
返回
完成 Task 时反序列化请求正文的 。