DefaultOutputFormatterSelector Klasse

Definition

Die Standardimplementierung von 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
Vererbung
DefaultOutputFormatterSelector

Konstruktoren

DefaultOutputFormatterSelector(IOptions<MvcOptions>, ILoggerFactory)

Initialisiert eine neue Instanz von DefaultOutputFormatterSelector.

Methoden

SelectFormatter(OutputFormatterCanWriteContext, IList<IOutputFormatter>, MediaTypeCollection)

Wählt ein IOutputFormatter aus, um die Antwort basierend auf den angegebenen Werten und der aktuellen Anforderung zu schreiben.

Gilt für: