共用方式為


TextOutputFormatter.WriteResponseBodyAsync 方法

定義

多載

WriteResponseBodyAsync(OutputFormatterWriteContext)

寫入回應本文。

WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding)

寫入回應本文。

WriteResponseBodyAsync(OutputFormatterWriteContext)

來源:
TextOutputFormatter.cs
來源:
TextOutputFormatter.cs
來源:
TextOutputFormatter.cs

寫入回應本文。

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)

來源:
TextOutputFormatter.cs
來源:
TextOutputFormatter.cs
來源:
TextOutputFormatter.cs

寫入回應本文。

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

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

selectedEncoding
Encoding

Encoding應該用來寫入回應的 。

傳回

可寫入回應本文的工作。

適用於