OutputFormatter Kelas
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Menulis objek ke aliran output.
public ref class OutputFormatter abstract : Microsoft::AspNetCore::Mvc::ApiExplorer::IApiResponseTypeMetadataProvider, Microsoft::AspNetCore::Mvc::Formatters::IOutputFormatter
public abstract class OutputFormatter : Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseTypeMetadataProvider, Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter
type OutputFormatter = class
interface IOutputFormatter
interface IApiResponseTypeMetadataProvider
type OutputFormatter = class
interface IApiResponseTypeMetadataProvider
interface IOutputFormatter
Public MustInherit Class OutputFormatter
Implements IApiResponseTypeMetadataProvider, IOutputFormatter
- Warisan
-
OutputFormatter
- Turunan
- Penerapan
Konstruktor
OutputFormatter() |
Menulis objek ke aliran output. |
Properti
SupportedMediaTypes |
Mendapatkan koleksi elemen jenis media yang dapat diubah yang didukung oleh ini OutputFormatter. |
Metode
CanWriteResult(OutputFormatterCanWriteContext) |
Menentukan apakah ini IOutputFormatter dapat membuat serial objek dari jenis yang ditentukan. |
CanWriteType(Type) |
Mengembalikan nilai yang menunjukkan apakah jenis yang diberikan dapat ditulis oleh serializer ini atau tidak. |
GetSupportedContentTypes(String, Type) |
Mendapatkan daftar tipe konten yang difilter yang didukung oleh IOutputFormatter untuk |
WriteAsync(OutputFormatterWriteContext) |
Menulis objek yang diwakili oleh |
WriteResponseBodyAsync(OutputFormatterWriteContext) |
Menulis isi respons. |
WriteResponseHeaders(OutputFormatterWriteContext) |
Mengatur header pada HttpResponse objek. |