Bagikan melalui


IOutputFormatter.WriteAsync(OutputFormatterWriteContext) Metode

Definisi

Menulis objek yang diwakili oleh contextproperti Objek.

public:
 System::Threading::Tasks::Task ^ WriteAsync(Microsoft::AspNetCore::Mvc::Formatters::OutputFormatterWriteContext ^ context);
public System.Threading.Tasks.Task WriteAsync (Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context);
abstract member WriteAsync : Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext -> System.Threading.Tasks.Task
Public Function WriteAsync (context As OutputFormatterWriteContext) As Task

Parameter

context
OutputFormatterWriteContext

Konteks formatter yang terkait dengan panggilan.

Mengembalikan

Tugas yang menserialisasikan nilai ke contextpesan respons.

Berlaku untuk