共用方式為


TextInputFormatter.ReadRequestBodyAsync 方法

定義

多載

ReadRequestBodyAsync(InputFormatterContext)

從要求本文讀取 物件。

ReadRequestBodyAsync(InputFormatterContext, Encoding)

從要求本文讀取 物件。

ReadRequestBodyAsync(InputFormatterContext)

來源:
TextInputFormatter.cs
來源:
TextInputFormatter.cs
來源:
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)

來源:
TextInputFormatter.cs
來源:
TextInputFormatter.cs
來源:
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)

參數

encoding
Encoding

Encoding用來讀取要求本文的 。

傳回

Task完成還原序列化要求主體的 。

適用於