TextInputFormatter 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 a request body with a text format.
public ref class TextInputFormatter abstract : Microsoft::AspNetCore::Mvc::Formatters::InputFormatter
public abstract class TextInputFormatter : Microsoft.AspNetCore.Mvc.Formatters.InputFormatter
type TextInputFormatter = class
inherit InputFormatter
Public MustInherit Class TextInputFormatter
Inherits InputFormatter
- Inheritance
- Derived
Constructors
TextInputFormatter() |
Fields
UTF16EncodingLittleEndian |
Returns UTF16 Encoding which uses littleEndian byte order with BOM and throws on invalid bytes. |
UTF8EncodingWithoutBOM |
Returns UTF8 Encoding without BOM and throws on invalid bytes. |
Properties
SupportedEncodings |
Gets the mutable collection of character encodings supported by this TextInputFormatter. The encodings are used when reading the data. |
SupportedMediaTypes |
Gets the mutable collection of media type elements supported by this InputFormatter. (Inherited from 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. (Inherited from InputFormatter) |
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. (Inherited from InputFormatter) |
ReadRequestBodyAsync(InputFormatterContext, Encoding) |
Reads an object from the request body. |
ReadRequestBodyAsync(InputFormatterContext) |
Reads an object from the request body. |
SelectCharacterEncoding(InputFormatterContext) |
Returns an Encoding based on |