OutputFormatter Třída

Definice

Zapíše objekt do výstupního datového proudu.

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 IOutputFormatter
    interface IApiResponseTypeMetadataProvider
type OutputFormatter = class
    interface IApiResponseTypeMetadataProvider
    interface IOutputFormatter
Public MustInherit Class OutputFormatter
Implements IApiResponseTypeMetadataProvider, IOutputFormatter
Dědičnost
OutputFormatter
Odvozené
Implementuje

Konstruktory

OutputFormatter()

Vlastnosti

SupportedMediaTypes

Získá proměnlivou kolekci prvků typu média podporovaných tímto OutputFormatter.

Metody

CanWriteResult(OutputFormatterCanWriteContext)

Určuje, zda to IOutputFormatter může serializovat objekt zadaného typu.

CanWriteType(Type)

Vrátí hodnotu určující, zda daný typ lze zapsat tímto serializátorem.

GetSupportedContentTypes(String, Type)

Získá filtrovaný seznam typů obsahu, které jsou podporovány IOutputFormatter pro objectType a contentType.

WriteAsync(OutputFormatterWriteContext)

Zapíše objekt reprezentovaný contextvlastností Object.

WriteResponseBodyAsync(OutputFormatterWriteContext)

Zapíše text odpovědi.

WriteResponseHeaders(OutputFormatterWriteContext)

Nastaví záhlaví objektu HttpResponse .

Platí pro