Microsoft.AspNetCore.Mvc.Formatters Namespace¶
-
namespace
Microsoft.AspNetCore.Mvc.
Formatters
¶ Interfaces
- interface
IInputFormatter
- Reads an object from the request body.
- interface
IOutputFormatter
- Writes an object to the output stream.
Classes
- class
FormatFilter
- A filter that will use the format value in the route data or query string to set the content type on an
Microsoft.AspNetCore.Mvc.ObjectResult
returned from an action. - class
FormatterCollection<TFormatter>
- Represents a collection of formatters.
- class
FormatterMappings
- Used to specify mapping between the URL Format and corresponding media type.
- class
HttpNoContentOutputFormatter
- Sets the status code to 204 if the content is null.
- class
InputFormatter
- Reads an object from the request body.
- class
InputFormatterContext
- A context object used by an input formatter for deserializing the request body into an object.
- class
InputFormatterResult
- Result of a
Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter.ReadAsync(Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext)
operation. - class
JsonInputFormatter
- A
Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter
for JSON content. - class
JsonOutputFormatter
- A
Microsoft.AspNetCore.Mvc.Formatters.TextOutputFormatter
for JSON content. - class
JsonPatchInputFormatter
- A
Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter
for JSON Patch (application/json-patch+json) content. - class
JsonSerializerSettingsProvider
- Helper class which provides
Newtonsoft.Json.JsonSerializerSettings
. - class
MediaTypeCollection
- A collection of media types.
- class
OutputFormatter
- Writes an object to the output stream.
- class
OutputFormatterCanWriteContext
- A context object for
Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter.CanWriteResult(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterCanWriteContext)
. - class
OutputFormatterWriteContext
- A context object for
Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter.WriteAsync(Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext)
. - class
StreamOutputFormatter
- Always copies the stream to the response, regardless of requested content type.
- class
StringOutputFormatter
- Always writes a string value to the response, regardless of requested content type.
- class
TextInputFormatter
- Reads an object from a request body with a text format.
- class
TextOutputFormatter
- Writes an object in a given text format to the output stream.
- class
XmlDataContractSerializerInputFormatter
- This class handles deserialization of input XML data
to strongly-typed objects using
System.Runtime.Serialization.DataContractSerializer
. - class
XmlDataContractSerializerOutputFormatter
- This class handles serialization of objects
to XML using
System.Runtime.Serialization.DataContractSerializer
- class
XmlSerializerInputFormatter
- This class handles deserialization of input XML data
to strongly-typed objects using
System.Xml.Serialization.XmlSerializer
- class
XmlSerializerOutputFormatter
- This class handles serialization of objects
to XML using
System.Xml.Serialization.XmlSerializer
Structures
- struct
MediaType
- A media type value.
- interface