Share via


TextInputFormatter.ReadRequestBodyAsync Method

Definition

Overloads

ReadRequestBodyAsync(InputFormatterContext)

Reads an object from the request body.

ReadRequestBodyAsync(InputFormatterContext, Encoding)

Reads an object from the request body.

ReadRequestBodyAsync(InputFormatterContext)

Source:
TextInputFormatter.cs
Source:
TextInputFormatter.cs
Source:
TextInputFormatter.cs

Reads an object from the request body.

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)

Parameters

Returns

A Task that on completion deserializes the request body.

Applies to

ReadRequestBodyAsync(InputFormatterContext, Encoding)

Source:
TextInputFormatter.cs
Source:
TextInputFormatter.cs
Source:
TextInputFormatter.cs

Reads an object from the request body.

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)

Parameters

encoding
Encoding

The Encoding used to read the request body.

Returns

A Task that on completion deserializes the request body.

Applies to