Bagikan melalui


StringOutputFormatter.WriteResponseBodyAsync Metode

Definisi

Menulis isi respons.

public:
 override System::Threading::Tasks::Task ^ WriteResponseBodyAsync(Microsoft::AspNetCore::Mvc::Formatters::OutputFormatterWriteContext ^ context, System::Text::Encoding ^ encoding);
public override System.Threading.Tasks.Task WriteResponseBodyAsync (Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.Text.Encoding encoding);
override this.WriteResponseBodyAsync : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext * System.Text.Encoding -> System.Threading.Tasks.Task
Public Overrides Function WriteResponseBodyAsync (context As OutputFormatterWriteContext, encoding As Encoding) As Task

Parameter

context
OutputFormatterWriteContext

Konteks formatter yang terkait dengan panggilan.

encoding
Encoding

Mengembalikan

Tugas yang dapat menulis isi respons.

Berlaku untuk