共用方式為


DefaultOutputFormatterSelector 類別

定義

的預設實作 OutputFormatterSelector

public ref class DefaultOutputFormatterSelector : Microsoft::AspNetCore::Mvc::Infrastructure::OutputFormatterSelector
public class DefaultOutputFormatterSelector : Microsoft.AspNetCore.Mvc.Infrastructure.OutputFormatterSelector
type DefaultOutputFormatterSelector = class
    inherit OutputFormatterSelector
Public Class DefaultOutputFormatterSelector
Inherits OutputFormatterSelector
繼承
DefaultOutputFormatterSelector

建構函式

DefaultOutputFormatterSelector(IOptions<MvcOptions>, ILoggerFactory)

初始化 DefaultOutputFormatterSelector 的新執行個體

方法

SelectFormatter(OutputFormatterCanWriteContext, IList<IOutputFormatter>, MediaTypeCollection)

選取 , IOutputFormatter 以根據提供的值和目前的要求來寫入回應。

適用於