OutputFormatter OutputFormatter OutputFormatter Class

Definition

Writes an object to the output stream.

public abstract class OutputFormatter : Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseTypeMetadataProvider, Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter
type OutputFormatter = class
    interface IOutputFormatter
    interface IApiResponseTypeMetadataProvider
Public MustInherit Class OutputFormatter
Implements IApiResponseTypeMetadataProvider, IOutputFormatter
Inheritance
OutputFormatterOutputFormatterOutputFormatter
Derived
Implements

Constructors

OutputFormatter() OutputFormatter() OutputFormatter()

Properties

SupportedMediaTypes SupportedMediaTypes SupportedMediaTypes

Gets the mutable collection of media type elements supported by this OutputFormatter.

Methods

CanWriteResult(OutputFormatterCanWriteContext) CanWriteResult(OutputFormatterCanWriteContext) CanWriteResult(OutputFormatterCanWriteContext)
CanWriteType(Type) CanWriteType(Type) CanWriteType(Type)

Returns a value indicating whether or not the given type can be written by this serializer.

GetSupportedContentTypes(String, Type) GetSupportedContentTypes(String, Type) GetSupportedContentTypes(String, Type)
WriteAsync(OutputFormatterWriteContext) WriteAsync(OutputFormatterWriteContext) WriteAsync(OutputFormatterWriteContext)
WriteResponseBodyAsync(OutputFormatterWriteContext) WriteResponseBodyAsync(OutputFormatterWriteContext) WriteResponseBodyAsync(OutputFormatterWriteContext)

Writes the response body.

WriteResponseHeaders(OutputFormatterWriteContext) WriteResponseHeaders(OutputFormatterWriteContext) WriteResponseHeaders(OutputFormatterWriteContext)

Sets the headers on HttpResponse object.

Applies to