StreamOutputFormatter 類別

定義

不論要求的內容類型為何,一律將 複製到 Stream 回應。

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
繼承
StreamOutputFormatter
實作

建構函式

StreamOutputFormatter()

不論要求的內容類型為何,一律將 複製到 Stream 回應。

方法

CanWriteResult(OutputFormatterCanWriteContext)

判斷這 IOutputFormatter 是否可以序列化指定型別的物件。

WriteAsync(OutputFormatterWriteContext)

寫入 物件,此物件是由 的 Object 屬性工作表示 context

適用於