TextInputFormatter.ReadRequestBodyAsync Metoda

Definice

Přetížení

ReadRequestBodyAsync(InputFormatterContext)

Načte objekt z textu požadavku.

ReadRequestBodyAsync(InputFormatterContext, Encoding)

Načte objekt z textu požadavku.

ReadRequestBodyAsync(InputFormatterContext)

Zdroj:
TextInputFormatter.cs
Zdroj:
TextInputFormatter.cs
Zdroj:
TextInputFormatter.cs

Načte objekt z textu požadavku.

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)

Parametry

Návraty

A Task , která při dokončení deserializuje text žádosti.

Platí pro

ReadRequestBodyAsync(InputFormatterContext, Encoding)

Zdroj:
TextInputFormatter.cs
Zdroj:
TextInputFormatter.cs
Zdroj:
TextInputFormatter.cs

Načte objekt z textu požadavku.

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)

Parametry

encoding
Encoding

Slouží Encoding ke čtení textu požadavku.

Návraty

A Task , která při dokončení deserializuje text žádosti.

Platí pro