共用方式為


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

與呼叫相關聯的格式器內容。

傳回

可寫入回應本文的工作。

適用於