StringOutputFormatter.WriteResponseBodyAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes the response body.
public:
override System::Threading::Tasks::Task ^ WriteResponseBodyAsync(Microsoft::AspNetCore::Mvc::Formatters::OutputFormatterWriteContext ^ context, System::Text::Encoding ^ encoding);
public override System.Threading.Tasks.Task WriteResponseBodyAsync (Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.Text.Encoding encoding);
override this.WriteResponseBodyAsync : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext * System.Text.Encoding -> System.Threading.Tasks.Task
Public Overrides Function WriteResponseBodyAsync (context As OutputFormatterWriteContext, encoding As Encoding) As Task
Parameters
- context
- OutputFormatterWriteContext
The formatter context associated with the call.
- encoding
- Encoding
Returns
A task which can write the response body.