TextInputFormatter.ReadRequestBodyAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- context
- InputFormatterContext
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
- context
- InputFormatterContext
Returns
A Task that on completion deserializes the request body.