TextOutputFormatter.WriteResponseBodyAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
WriteResponseBodyAsync(OutputFormatterWriteContext) |
寫入回應本文。 |
WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding) |
寫入回應本文。 |
WriteResponseBodyAsync(OutputFormatterWriteContext)
寫入回應本文。
public:
override System::Threading::Tasks::Task ^ WriteResponseBodyAsync(Microsoft::AspNetCore::Mvc::Formatters::OutputFormatterWriteContext ^ context);
public override sealed System.Threading.Tasks.Task WriteResponseBodyAsync (Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context);
override this.WriteResponseBodyAsync : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext -> System.Threading.Tasks.Task
Public Overrides NotOverridable Function WriteResponseBodyAsync (context As OutputFormatterWriteContext) As Task
參數
- context
- OutputFormatterWriteContext
與呼叫相關聯的格式器內容。
傳回
可寫入回應本文的工作。
適用於
WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding)
寫入回應本文。
public:
abstract System::Threading::Tasks::Task ^ WriteResponseBodyAsync(Microsoft::AspNetCore::Mvc::Formatters::OutputFormatterWriteContext ^ context, System::Text::Encoding ^ selectedEncoding);
public abstract System.Threading.Tasks.Task WriteResponseBodyAsync (Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.Text.Encoding selectedEncoding);
override this.WriteResponseBodyAsync : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext * System.Text.Encoding -> System.Threading.Tasks.Task
Public MustOverride Function WriteResponseBodyAsync (context As OutputFormatterWriteContext, selectedEncoding As Encoding) As Task
參數
- context
- OutputFormatterWriteContext
與呼叫相關聯的格式器內容。
傳回
可寫入回應本文的工作。