XmlSerializerOutputFormatter.WriteResponseBodyAsync Method

Definition

Writes the response body.

C#
public override System.Threading.Tasks.Task WriteResponseBodyAsync (Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context, System.Text.Encoding selectedEncoding);

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

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0