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)
Obsolete.

Initializes a new JsonPatchInputFormatter instance.

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

Initializes a new JsonPatchInputFormatter instance.

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

Initializes a new JsonPatchInputFormatter instance.

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

Initializes a new JsonPatchInputFormatter instance.

Properties

ExceptionPolicy

Gets the flag to indicate if the body model binder should handle all exceptions. If an exception is handled, the body model binder converts the exception into model state errors, else the exception is allowed to propagate.

ExceptionPolicy

Gets the flag to indicate if the body model binder should handle all exceptions. If an exception is handled, the body model binder converts the exception into model state errors, else the exception is allowed to propagate.

(Inherited from JsonInputFormatter)
SerializerSettings

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

(Inherited from JsonInputFormatter)
SupportedEncodings

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

(Inherited from TextInputFormatter)
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 context's ModelType.

CanReadType(Type)

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

(Inherited from InputFormatter)
CreateJsonSerializer()

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

(Inherited from JsonInputFormatter)
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 objectType and contentType.

(Inherited from InputFormatter)
ReadAsync(InputFormatterContext)

Reads an object from the request body.

(Inherited from InputFormatter)
ReadRequestBodyAsync(InputFormatterContext)

Reads an object from the request body.

(Inherited from TextInputFormatter)
ReadRequestBodyAsync(InputFormatterContext, Encoding)

Reads an object from the request body.

ReleaseJsonSerializer(JsonSerializer)

Releases the serializer instance.

(Inherited from JsonInputFormatter)
SelectCharacterEncoding(InputFormatterContext)

Returns an Encoding based on context's character set.

(Inherited from TextInputFormatter)

Applies to