Bagikan melalui


TextOutputFormatter.WriteResponseBodyAsync Metode

Definisi

Overload

WriteResponseBodyAsync(OutputFormatterWriteContext)

Menulis isi respons.

WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding)

Menulis isi respons.

WriteResponseBodyAsync(OutputFormatterWriteContext)

Sumber:
TextOutputFormatter.cs
Sumber:
TextOutputFormatter.cs
Sumber:
TextOutputFormatter.cs

Menulis isi respons.

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

Parameter

context
OutputFormatterWriteContext

Konteks formatter yang terkait dengan panggilan.

Mengembalikan

Tugas yang dapat menulis isi respons.

Berlaku untuk

WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding)

Sumber:
TextOutputFormatter.cs
Sumber:
TextOutputFormatter.cs
Sumber:
TextOutputFormatter.cs

Menulis isi respons.

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

Parameter

context
OutputFormatterWriteContext

Konteks formatter yang terkait dengan panggilan.

selectedEncoding
Encoding

Encoding yang harus digunakan untuk menulis respons.

Mengembalikan

Tugas yang dapat menulis isi respons.

Berlaku untuk