StringOutputFormatter.WriteResponseBodyAsync 方法

定义

写入响应正文。

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

参数

context
OutputFormatterWriteContext

与调用关联的格式化程序上下文。

encoding
Encoding

返回

可以写入响应正文的任务。

适用于