SystemTextJsonInputFormatter SystemTextJsonInputFormatter SystemTextJsonInputFormatter SystemTextJsonInputFormatter Class

Definition

A TextInputFormatter for JSON content that uses JsonSerializer.

public ref class SystemTextJsonInputFormatter : Microsoft::AspNetCore::Mvc::Formatters::TextInputFormatter, Microsoft::AspNetCore::Mvc::Formatters::IInputFormatterExceptionPolicy
public class SystemTextJsonInputFormatter : Microsoft.AspNetCore.Mvc.Formatters.TextInputFormatter, Microsoft.AspNetCore.Mvc.Formatters.IInputFormatterExceptionPolicy
type SystemTextJsonInputFormatter = class
    inherit TextInputFormatter
    interface IInputFormatterExceptionPolicy
Public Class SystemTextJsonInputFormatter
Inherits TextInputFormatter
Implements IInputFormatterExceptionPolicy
Inheritance
SystemTextJsonInputFormatterSystemTextJsonInputFormatterSystemTextJsonInputFormatterSystemTextJsonInputFormatter
Implements

Constructors

SystemTextJsonInputFormatter(JsonOptions, ILogger<SystemTextJsonInputFormatter>) SystemTextJsonInputFormatter(JsonOptions, ILogger<SystemTextJsonInputFormatter>) SystemTextJsonInputFormatter(JsonOptions, ILogger<SystemTextJsonInputFormatter>) SystemTextJsonInputFormatter(JsonOptions, ILogger<SystemTextJsonInputFormatter>)

Initializes a new instance of SystemTextJsonInputFormatter.

Properties

SerializerOptions SerializerOptions SerializerOptions SerializerOptions

Gets the JsonSerializerOptions used to configure the JsonSerializer.

SupportedEncodings SupportedEncodings SupportedEncodings SupportedEncodings

Gets the mutable collection of character encodings supported by this TextInputFormatter. The encodings are used when reading the data.

(Inherited from TextInputFormatter)
SupportedMediaTypes SupportedMediaTypes SupportedMediaTypes SupportedMediaTypes

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

(Inherited from InputFormatter)

Methods

CanRead(InputFormatterContext) CanRead(InputFormatterContext) CanRead(InputFormatterContext) CanRead(InputFormatterContext) Inherited from InputFormatter
CanReadType(Type) CanReadType(Type) CanReadType(Type) CanReadType(Type)

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

(Inherited from InputFormatter)
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.

(Inherited from InputFormatter)
GetSupportedContentTypes(String, Type) GetSupportedContentTypes(String, Type) GetSupportedContentTypes(String, Type) GetSupportedContentTypes(String, Type) Inherited from InputFormatter
ReadAsync(InputFormatterContext) ReadAsync(InputFormatterContext) ReadAsync(InputFormatterContext) ReadAsync(InputFormatterContext) Inherited from InputFormatter
ReadRequestBodyAsync(InputFormatterContext) ReadRequestBodyAsync(InputFormatterContext) ReadRequestBodyAsync(InputFormatterContext) ReadRequestBodyAsync(InputFormatterContext) Inherited from TextInputFormatter
ReadRequestBodyAsync(InputFormatterContext, Encoding) ReadRequestBodyAsync(InputFormatterContext, Encoding) ReadRequestBodyAsync(InputFormatterContext, Encoding) ReadRequestBodyAsync(InputFormatterContext, Encoding)
SelectCharacterEncoding(InputFormatterContext) SelectCharacterEncoding(InputFormatterContext) SelectCharacterEncoding(InputFormatterContext) SelectCharacterEncoding(InputFormatterContext)

Returns an Encoding based on context's character set.

(Inherited from TextInputFormatter)

Explicit Interface Implementations

IInputFormatterExceptionPolicy.ExceptionPolicy IInputFormatterExceptionPolicy.ExceptionPolicy IInputFormatterExceptionPolicy.ExceptionPolicy IInputFormatterExceptionPolicy.ExceptionPolicy

Applies to