OutputFormatter Klasa

Definicja

Zapisuje obiekt w strumieniu wyjściowym.

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
Dziedziczenie
OutputFormatter
Pochodne
Implementuje

Konstruktory

OutputFormatter()

Zapisuje obiekt w strumieniu wyjściowym.

Właściwości

SupportedMediaTypes

Pobiera modyfikowalny zbiór elementów typu nośnika obsługiwanych przez ten OutputFormatterelement .

Metody

CanWriteResult(OutputFormatterCanWriteContext)

Określa, czy może to IOutputFormatter serializować obiekt określonego typu.

CanWriteType(Type)

Zwraca wartość wskazującą, czy dany typ może zostać zapisany przez ten serializator.

GetSupportedContentTypes(String, Type)

Pobiera filtrowaną listę typów zawartości obsługiwanych przez IOutputFormatter element objectType i contentType.

WriteAsync(OutputFormatterWriteContext)

Zapisuje obiekt reprezentowany przez contextwłaściwość Object .

WriteResponseBodyAsync(OutputFormatterWriteContext)

Zapisuje treść odpowiedzi.

WriteResponseHeaders(OutputFormatterWriteContext)

Ustawia nagłówki obiektu HttpResponse .

Dotyczy