Lenguaje

OutputFormatter Clase

Definición

Escribe un objeto en el flujo de salida.

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
Herencia
OutputFormatter
Derivado
Implementaciones

Constructores

Nombre Description
OutputFormatter()

Escribe un objeto en el flujo de salida.

Propiedades

Nombre Description
SupportedMediaTypes

Obtiene la colección mutable de elementos de tipo multimedia admitidos por este OutputFormatterobjeto .

Métodos

Nombre Description
CanWriteResult(OutputFormatterCanWriteContext)

Determina si esto IOutputFormatter puede serializar un objeto del tipo especificado.

CanWriteType(Type)

Devuelve un valor que indica si este serializador puede escribir o no el tipo especificado.

GetSupportedContentTypes(String, Type)

Obtiene una lista filtrada de tipos de contenido admitidos por para IOutputFormatterobjectType y contentType.

WriteAsync(OutputFormatterWriteContext)

Escribe el objeto representado por contextla propiedad Object.

WriteResponseBodyAsync(OutputFormatterWriteContext)

Escribe el cuerpo de la respuesta.

WriteResponseHeaders(OutputFormatterWriteContext)

Establece los encabezados en el HttpResponse objeto .

Se aplica a