OutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext) 方法

定义

写入响应正文。

public:
 abstract System::Threading::Tasks::Task ^ WriteResponseBodyAsync(Microsoft::AspNetCore::Mvc::Formatters::OutputFormatterWriteContext ^ context);
public abstract System.Threading.Tasks.Task WriteResponseBodyAsync (Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context);
abstract member WriteResponseBodyAsync : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext -> System.Threading.Tasks.Task
Public MustOverride Function WriteResponseBodyAsync (context As OutputFormatterWriteContext) As Task

参数

context
OutputFormatterWriteContext

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

返回

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

适用于