InputFormatter Klasa

Definicja

Odczytuje obiekt z treści żądania.

public ref class InputFormatter abstract : Microsoft::AspNetCore::Mvc::ApiExplorer::IApiRequestFormatMetadataProvider, Microsoft::AspNetCore::Mvc::Formatters::IInputFormatter
public abstract class InputFormatter : Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestFormatMetadataProvider, Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter
type InputFormatter = class
    interface IInputFormatter
    interface IApiRequestFormatMetadataProvider
type InputFormatter = class
    interface IApiRequestFormatMetadataProvider
    interface IInputFormatter
Public MustInherit Class InputFormatter
Implements IApiRequestFormatMetadataProvider, IInputFormatter
Dziedziczenie
InputFormatter
Pochodne
Implementuje

Konstruktory

InputFormatter()

Odczytuje obiekt z treści żądania.

Właściwości

SupportedMediaTypes

Pobiera modyfikowalny zbiór elementów typu nośnika obsługiwanych przez ten InputFormatterelement .

Metody

CanRead(InputFormatterContext)

Określa, czy może to IInputFormatter deserializować obiekt contextobiektu .ModelType

CanReadType(Type)

Określa, czy może to InputFormatter deserializować obiekt danego typeobiektu .

GetDefaultValueForType(Type)

Pobiera wartość domyślną dla danego typu. Służy do zwracania wartości domyślnej, gdy treść nie zawiera zawartości.

GetSupportedContentTypes(String, Type)

Pobiera filtrowaną listę typów zawartości, które są obsługiwane przez IInputFormatter element dla elementów objectType i contentType.

ReadAsync(InputFormatterContext)

Odczytuje obiekt z treści żądania.

ReadRequestBodyAsync(InputFormatterContext)

Odczytuje obiekt z treści żądania.

Dotyczy