InputFormatter InputFormatter InputFormatter InputFormatter Class

Definition

Reads an object from the request body.

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 IApiRequestFormatMetadataProvider
    interface IInputFormatter
Public MustInherit Class InputFormatter
Implements IApiRequestFormatMetadataProvider, IInputFormatter
Inheritance
InputFormatterInputFormatterInputFormatterInputFormatter
Derived
Implements

Constructors

InputFormatter() InputFormatter() InputFormatter() InputFormatter()

Properties

SupportedMediaTypes SupportedMediaTypes SupportedMediaTypes SupportedMediaTypes

Gets the mutable collection of media type elements supported by this InputFormatter.

Methods

CanRead(InputFormatterContext) CanRead(InputFormatterContext) CanRead(InputFormatterContext) CanRead(InputFormatterContext)
CanReadType(Type) CanReadType(Type) CanReadType(Type) CanReadType(Type)

Determines whether this InputFormatter can deserialize an object of the given type.

GetDefaultValueForType(Type) GetDefaultValueForType(Type) GetDefaultValueForType(Type) GetDefaultValueForType(Type)

Gets the default value for a given type. Used to return a default value when the body contains no content.

GetSupportedContentTypes(String, Type) GetSupportedContentTypes(String, Type) GetSupportedContentTypes(String, Type) GetSupportedContentTypes(String, Type)
ReadAsync(InputFormatterContext) ReadAsync(InputFormatterContext) ReadAsync(InputFormatterContext) ReadAsync(InputFormatterContext)
ReadRequestBodyAsync(InputFormatterContext) ReadRequestBodyAsync(InputFormatterContext) ReadRequestBodyAsync(InputFormatterContext) ReadRequestBodyAsync(InputFormatterContext)

Reads an object from the request body.

Applies to