JsonPatchInputFormatter JsonPatchInputFormatter JsonPatchInputFormatter JsonPatchInputFormatter Class

Definition

A TextInputFormatter for JSON Patch (application/json-patch+json) content.

public ref class JsonPatchInputFormatter : Microsoft::AspNetCore::Mvc::Formatters::JsonInputFormatter
public class JsonPatchInputFormatter : Microsoft.AspNetCore.Mvc.Formatters.JsonInputFormatter
type JsonPatchInputFormatter = class
    inherit JsonInputFormatter
Public Class JsonPatchInputFormatter
Inherits JsonInputFormatter
Inheritance

Constructors

JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider) JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider) JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider) JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider)

Initializes a new JsonPatchInputFormatter instance.

JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean) JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean) JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean) JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean)

Initializes a new JsonPatchInputFormatter instance.

JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean, Boolean) JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean, Boolean) JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean, Boolean) JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean, Boolean)

Initializes a new JsonPatchInputFormatter instance.

JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, MvcOptions, MvcJsonOptions) JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, MvcOptions, MvcJsonOptions) JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, MvcOptions, MvcJsonOptions) JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, MvcOptions, MvcJsonOptions)

Initializes a new JsonPatchInputFormatter instance.

Properties

ExceptionPolicy ExceptionPolicy ExceptionPolicy ExceptionPolicy
SerializerSettings SerializerSettings SerializerSettings SerializerSettings

Gets the Newtonsoft.Json.JsonSerializerSettings used to configure the Newtonsoft.Json.JsonSerializer.

(Inherited from JsonInputFormatter)
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)
CanReadType(Type) CanReadType(Type) CanReadType(Type) CanReadType(Type)

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

(Inherited from InputFormatter)
CreateJsonSerializer() CreateJsonSerializer() CreateJsonSerializer() CreateJsonSerializer()

Called during deserialization to get the Newtonsoft.Json.JsonSerializer.

(Inherited from JsonInputFormatter)
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)
ReleaseJsonSerializer(JsonSerializer) ReleaseJsonSerializer(JsonSerializer) ReleaseJsonSerializer(JsonSerializer) ReleaseJsonSerializer(JsonSerializer)

Releases the serializer instance.

(Inherited from JsonInputFormatter)
SelectCharacterEncoding(InputFormatterContext) SelectCharacterEncoding(InputFormatterContext) SelectCharacterEncoding(InputFormatterContext) SelectCharacterEncoding(InputFormatterContext)

Returns an Encoding based on context's character set.

(Inherited from TextInputFormatter)

Applies to