InputFormatter InputFormatter InputFormatter Class

Definition

Reads an object from the request body.

public abstract class InputFormatter : Microsoft.AspNetCore.Mvc.ApiExplorer.IApiRequestFormatMetadataProvider, Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter
type InputFormatter = class
    interface IInputFormatter
    interface IApiRequestFormatMetadataProvider
Public MustInherit Class InputFormatter
Implements IApiRequestFormatMetadataProvider, IInputFormatter
Inheritance
InputFormatterInputFormatterInputFormatter
Derived
Implements

Constructors

InputFormatter() InputFormatter() InputFormatter()

Properties

SupportedMediaTypes SupportedMediaTypes SupportedMediaTypes

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

Methods

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

Determines whether this InputFormatter can deserialize an object of the given 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)
ReadAsync(InputFormatterContext) ReadAsync(InputFormatterContext) ReadAsync(InputFormatterContext)
ReadRequestBodyAsync(InputFormatterContext) ReadRequestBodyAsync(InputFormatterContext) ReadRequestBodyAsync(InputFormatterContext)

Reads an object from the request body.

Applies to