Dela via


JsonPatchInputFormatter Constructors

Definition

Overloads

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, MvcOptions, MvcJsonOptions)

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)

Source:
JsonPatchInputFormatter.cs
Source:
JsonPatchInputFormatter.cs

Caution

This constructor is obsolete and will be removed in a future version.

Initializes a new JsonPatchInputFormatter instance.

public:
 JsonPatchInputFormatter(Microsoft::Extensions::Logging::ILogger ^ logger, Newtonsoft::Json::JsonSerializerSettings ^ serializerSettings, System::Buffers::ArrayPool<char> ^ charPool, Microsoft::Extensions::ObjectPool::ObjectPoolProvider ^ objectPoolProvider);
public JsonPatchInputFormatter (Microsoft.Extensions.Logging.ILogger logger, Newtonsoft.Json.JsonSerializerSettings serializerSettings, System.Buffers.ArrayPool<char> charPool, Microsoft.Extensions.ObjectPool.ObjectPoolProvider objectPoolProvider);
[System.Obsolete("This constructor is obsolete and will be removed in a future version.")]
public JsonPatchInputFormatter (Microsoft.Extensions.Logging.ILogger logger, Newtonsoft.Json.JsonSerializerSettings serializerSettings, System.Buffers.ArrayPool<char> charPool, Microsoft.Extensions.ObjectPool.ObjectPoolProvider objectPoolProvider);
new Microsoft.AspNetCore.Mvc.Formatters.JsonPatchInputFormatter : Microsoft.Extensions.Logging.ILogger * Newtonsoft.Json.JsonSerializerSettings * System.Buffers.ArrayPool<char> * Microsoft.Extensions.ObjectPool.ObjectPoolProvider -> Microsoft.AspNetCore.Mvc.Formatters.JsonPatchInputFormatter
[<System.Obsolete("This constructor is obsolete and will be removed in a future version.")>]
new Microsoft.AspNetCore.Mvc.Formatters.JsonPatchInputFormatter : Microsoft.Extensions.Logging.ILogger * Newtonsoft.Json.JsonSerializerSettings * System.Buffers.ArrayPool<char> * Microsoft.Extensions.ObjectPool.ObjectPoolProvider -> Microsoft.AspNetCore.Mvc.Formatters.JsonPatchInputFormatter
Public Sub New (logger As ILogger, serializerSettings As JsonSerializerSettings, charPool As ArrayPool(Of Char), objectPoolProvider As ObjectPoolProvider)

Parameters

logger
ILogger

The ILogger.

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

The Newtonsoft.Json.JsonSerializerSettings. Should be either the application-wide settings (SerializerSettings) or an instance CreateSerializerSettings() initially returned.

charPool
ArrayPool<Char>

The ArrayPool<T>.

objectPoolProvider
ObjectPoolProvider

The ObjectPoolProvider.

Attributes

Applies to

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

Source:
JsonPatchInputFormatter.cs
Source:
JsonPatchInputFormatter.cs

Caution

This constructor is obsolete and will be removed in a future version.

Initializes a new JsonPatchInputFormatter instance.

public:
 JsonPatchInputFormatter(Microsoft::Extensions::Logging::ILogger ^ logger, Newtonsoft::Json::JsonSerializerSettings ^ serializerSettings, System::Buffers::ArrayPool<char> ^ charPool, Microsoft::Extensions::ObjectPool::ObjectPoolProvider ^ objectPoolProvider, bool suppressInputFormatterBuffering);
public JsonPatchInputFormatter (Microsoft.Extensions.Logging.ILogger logger, Newtonsoft.Json.JsonSerializerSettings serializerSettings, System.Buffers.ArrayPool<char> charPool, Microsoft.Extensions.ObjectPool.ObjectPoolProvider objectPoolProvider, bool suppressInputFormatterBuffering);
[System.Obsolete("This constructor is obsolete and will be removed in a future version.")]
public JsonPatchInputFormatter (Microsoft.Extensions.Logging.ILogger logger, Newtonsoft.Json.JsonSerializerSettings serializerSettings, System.Buffers.ArrayPool<char> charPool, Microsoft.Extensions.ObjectPool.ObjectPoolProvider objectPoolProvider, bool suppressInputFormatterBuffering);
new Microsoft.AspNetCore.Mvc.Formatters.JsonPatchInputFormatter : Microsoft.Extensions.Logging.ILogger * Newtonsoft.Json.JsonSerializerSettings * System.Buffers.ArrayPool<char> * Microsoft.Extensions.ObjectPool.ObjectPoolProvider * bool -> Microsoft.AspNetCore.Mvc.Formatters.JsonPatchInputFormatter
[<System.Obsolete("This constructor is obsolete and will be removed in a future version.")>]
new Microsoft.AspNetCore.Mvc.Formatters.JsonPatchInputFormatter : Microsoft.Extensions.Logging.ILogger * Newtonsoft.Json.JsonSerializerSettings * System.Buffers.ArrayPool<char> * Microsoft.Extensions.ObjectPool.ObjectPoolProvider * bool -> Microsoft.AspNetCore.Mvc.Formatters.JsonPatchInputFormatter
Public Sub New (logger As ILogger, serializerSettings As JsonSerializerSettings, charPool As ArrayPool(Of Char), objectPoolProvider As ObjectPoolProvider, suppressInputFormatterBuffering As Boolean)

Parameters

logger
ILogger

The ILogger.

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

The Newtonsoft.Json.JsonSerializerSettings. Should be either the application-wide settings (SerializerSettings) or an instance CreateSerializerSettings() initially returned.

charPool
ArrayPool<Char>

The ArrayPool<T>.

objectPoolProvider
ObjectPoolProvider

The ObjectPoolProvider.

suppressInputFormatterBuffering
Boolean

Flag to buffer entire request body before deserializing it.

Attributes

Applies to

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

Source:
JsonPatchInputFormatter.cs
Source:
JsonPatchInputFormatter.cs

Initializes a new JsonPatchInputFormatter instance.

public:
 JsonPatchInputFormatter(Microsoft::Extensions::Logging::ILogger ^ logger, Newtonsoft::Json::JsonSerializerSettings ^ serializerSettings, System::Buffers::ArrayPool<char> ^ charPool, Microsoft::Extensions::ObjectPool::ObjectPoolProvider ^ objectPoolProvider, Microsoft::AspNetCore::Mvc::MvcOptions ^ options, Microsoft::AspNetCore::Mvc::MvcJsonOptions ^ jsonOptions);
public JsonPatchInputFormatter (Microsoft.Extensions.Logging.ILogger logger, Newtonsoft.Json.JsonSerializerSettings serializerSettings, System.Buffers.ArrayPool<char> charPool, Microsoft.Extensions.ObjectPool.ObjectPoolProvider objectPoolProvider, Microsoft.AspNetCore.Mvc.MvcOptions options, Microsoft.AspNetCore.Mvc.MvcJsonOptions jsonOptions);
new Microsoft.AspNetCore.Mvc.Formatters.JsonPatchInputFormatter : Microsoft.Extensions.Logging.ILogger * Newtonsoft.Json.JsonSerializerSettings * System.Buffers.ArrayPool<char> * Microsoft.Extensions.ObjectPool.ObjectPoolProvider * Microsoft.AspNetCore.Mvc.MvcOptions * Microsoft.AspNetCore.Mvc.MvcJsonOptions -> Microsoft.AspNetCore.Mvc.Formatters.JsonPatchInputFormatter
Public Sub New (logger As ILogger, serializerSettings As JsonSerializerSettings, charPool As ArrayPool(Of Char), objectPoolProvider As ObjectPoolProvider, options As MvcOptions, jsonOptions As MvcJsonOptions)

Parameters

logger
ILogger

The ILogger.

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

The Newtonsoft.Json.JsonSerializerSettings. Should be either the application-wide settings (SerializerSettings) or an instance CreateSerializerSettings() initially returned.

charPool
ArrayPool<Char>

The ArrayPool<T>.

objectPoolProvider
ObjectPoolProvider

The ObjectPoolProvider.

options
MvcOptions

The MvcOptions.

jsonOptions
MvcJsonOptions

The MvcJsonOptions.

Applies to

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

Source:
JsonPatchInputFormatter.cs
Source:
JsonPatchInputFormatter.cs

Caution

This constructor is obsolete and will be removed in a future version.

Initializes a new JsonPatchInputFormatter instance.

public:
 JsonPatchInputFormatter(Microsoft::Extensions::Logging::ILogger ^ logger, Newtonsoft::Json::JsonSerializerSettings ^ serializerSettings, System::Buffers::ArrayPool<char> ^ charPool, Microsoft::Extensions::ObjectPool::ObjectPoolProvider ^ objectPoolProvider, bool suppressInputFormatterBuffering, bool allowInputFormatterExceptionMessages);
[System.Obsolete("This constructor is obsolete and will be removed in a future version.")]
public JsonPatchInputFormatter (Microsoft.Extensions.Logging.ILogger logger, Newtonsoft.Json.JsonSerializerSettings serializerSettings, System.Buffers.ArrayPool<char> charPool, Microsoft.Extensions.ObjectPool.ObjectPoolProvider objectPoolProvider, bool suppressInputFormatterBuffering, bool allowInputFormatterExceptionMessages);
[<System.Obsolete("This constructor is obsolete and will be removed in a future version.")>]
new Microsoft.AspNetCore.Mvc.Formatters.JsonPatchInputFormatter : Microsoft.Extensions.Logging.ILogger * Newtonsoft.Json.JsonSerializerSettings * System.Buffers.ArrayPool<char> * Microsoft.Extensions.ObjectPool.ObjectPoolProvider * bool * bool -> Microsoft.AspNetCore.Mvc.Formatters.JsonPatchInputFormatter
Public Sub New (logger As ILogger, serializerSettings As JsonSerializerSettings, charPool As ArrayPool(Of Char), objectPoolProvider As ObjectPoolProvider, suppressInputFormatterBuffering As Boolean, allowInputFormatterExceptionMessages As Boolean)

Parameters

logger
ILogger

The ILogger.

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

The Newtonsoft.Json.JsonSerializerSettings. Should be either the application-wide settings (SerializerSettings) or an instance CreateSerializerSettings() initially returned.

charPool
ArrayPool<Char>

The ArrayPool<T>.

objectPoolProvider
ObjectPoolProvider

The ObjectPoolProvider.

suppressInputFormatterBuffering
Boolean

Flag to buffer entire request body before deserializing it.

allowInputFormatterExceptionMessages
Boolean

If false, JSON deserialization exception messages will replaced by a generic message in model state.

Attributes

Applies to