Dela via


StreamOutputFormatter Class

Definition

Always copies the Stream to the response, regardless of requested content type.

public ref class StreamOutputFormatter : Microsoft::AspNetCore::Mvc::Formatters::IOutputFormatter
public class StreamOutputFormatter : Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter
type StreamOutputFormatter = class
    interface IOutputFormatter
Public Class StreamOutputFormatter
Implements IOutputFormatter
Inheritance
StreamOutputFormatter
Implements

Constructors

StreamOutputFormatter()

Methods

CanWriteResult(OutputFormatterCanWriteContext)

Determines whether this IOutputFormatter can serialize an object of the specified type.

WriteAsync(OutputFormatterWriteContext)

Writes the object represented by context's Object property.

Applies to