TextInputFormatter.ReadRequestBodyAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ReadRequestBodyAsync(InputFormatterContext) |
從要求本文讀取 物件。 |
ReadRequestBodyAsync(InputFormatterContext, Encoding) |
從要求本文讀取 物件。 |
ReadRequestBodyAsync(InputFormatterContext)
從要求本文讀取 物件。
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)
從要求本文讀取 物件。
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完成還原序列化要求主體的 。