OutputFormatter OutputFormatter OutputFormatter OutputFormatter Class

Definition

Writes an object to the output stream.

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 IApiResponseTypeMetadataProvider
    interface IOutputFormatter
Public MustInherit Class OutputFormatter
Implements IApiResponseTypeMetadataProvider, IOutputFormatter
Inheritance
OutputFormatterOutputFormatterOutputFormatterOutputFormatter
Derived
Implements

Constructors

OutputFormatter() OutputFormatter() OutputFormatter() OutputFormatter()

Properties

SupportedMediaTypes SupportedMediaTypes SupportedMediaTypes SupportedMediaTypes

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

Methods

CanWriteResult(OutputFormatterCanWriteContext) CanWriteResult(OutputFormatterCanWriteContext) CanWriteResult(OutputFormatterCanWriteContext) CanWriteResult(OutputFormatterCanWriteContext)
CanWriteType(Type) 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) GetSupportedContentTypes(String, Type)
WriteAsync(OutputFormatterWriteContext) WriteAsync(OutputFormatterWriteContext) WriteAsync(OutputFormatterWriteContext) WriteAsync(OutputFormatterWriteContext)
WriteResponseBodyAsync(OutputFormatterWriteContext) WriteResponseBodyAsync(OutputFormatterWriteContext) WriteResponseBodyAsync(OutputFormatterWriteContext) WriteResponseBodyAsync(OutputFormatterWriteContext)

Writes the response body.

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

Sets the headers on HttpResponse object.

Applies to