InputFormatter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 IInputFormatter
interface IApiRequestFormatMetadataProvider
type InputFormatter = class
interface IApiRequestFormatMetadataProvider
interface IInputFormatter
Public MustInherit Class InputFormatter
Implements IApiRequestFormatMetadataProvider, IInputFormatter
- Inheritance
-
InputFormatter
- Derived
- Implements
Constructors
InputFormatter() |
Properties
SupportedMediaTypes |
Gets the mutable collection of media type elements supported by this InputFormatter. |
Methods
CanRead(InputFormatterContext) |
Determines whether this IInputFormatter can deserialize an object of the
|
CanReadType(Type) |
Determines whether this InputFormatter can deserialize an object of the given
|
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) |
Gets a filtered list of content types which are supported by the IInputFormatter
for the |
ReadAsync(InputFormatterContext) |
Reads an object from the request body. |
ReadRequestBodyAsync(InputFormatterContext) |
Reads an object from the request body. |