Share via


TextOutputFormatter.WriteResponseBodyAsync Method

Definition

Overloads

WriteResponseBodyAsync(OutputFormatterWriteContext)

Writes the response body.

WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding)

Writes the response body.

WriteResponseBodyAsync(OutputFormatterWriteContext)

Source:
TextOutputFormatter.cs
Source:
TextOutputFormatter.cs
Source:
TextOutputFormatter.cs

Writes the response body.

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

Parameters

context
OutputFormatterWriteContext

The formatter context associated with the call.

Returns

A task which can write the response body.

Applies to

WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding)

Source:
TextOutputFormatter.cs
Source:
TextOutputFormatter.cs
Source:
TextOutputFormatter.cs

Writes the response body.

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

Parameters

context
OutputFormatterWriteContext

The formatter context associated with the call.

selectedEncoding
Encoding

The Encoding that should be used to write the response.

Returns

A task which can write the response body.

Applies to