JsonPatchInputFormatter Конструкторы
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider) |
Устаревшие..
Инициализирует новый экземпляр класса JsonPatchInputFormatter. |
JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean) |
Устаревшие..
Инициализирует новый экземпляр класса JsonPatchInputFormatter. |
JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, MvcOptions, MvcJsonOptions) |
Инициализирует новый экземпляр класса JsonPatchInputFormatter. |
JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean, Boolean) |
Устаревшие..
Инициализирует новый экземпляр класса JsonPatchInputFormatter. |
JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider)
- Исходный код:
- JsonPatchInputFormatter.cs
- Исходный код:
- JsonPatchInputFormatter.cs
Внимание!
This constructor is obsolete and will be removed in a future version.
Инициализирует новый экземпляр класса JsonPatchInputFormatter.
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)
Параметры
- serializerSettings
- Newtonsoft.Json.JsonSerializerSettings
Newtonsoft.Json.JsonSerializerSettings. Должен быть либо параметрами для всего приложения (SerializerSettings), либо изначально возвращенным экземпляром CreateSerializerSettings() .
- objectPoolProvider
- ObjectPoolProvider
- Атрибуты
Применяется к
JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean)
- Исходный код:
- JsonPatchInputFormatter.cs
- Исходный код:
- JsonPatchInputFormatter.cs
Внимание!
This constructor is obsolete and will be removed in a future version.
Инициализирует новый экземпляр класса JsonPatchInputFormatter.
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)
Параметры
- serializerSettings
- Newtonsoft.Json.JsonSerializerSettings
Newtonsoft.Json.JsonSerializerSettings. Должен быть либо параметрами для всего приложения (SerializerSettings), либо изначально возвращенным экземпляром CreateSerializerSettings() .
- objectPoolProvider
- ObjectPoolProvider
- suppressInputFormatterBuffering
- Boolean
Флаг для буферизации всего текста запроса перед его десериализацией.
- Атрибуты
Применяется к
JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, MvcOptions, MvcJsonOptions)
- Исходный код:
- JsonPatchInputFormatter.cs
- Исходный код:
- JsonPatchInputFormatter.cs
Инициализирует новый экземпляр класса JsonPatchInputFormatter.
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)
Параметры
- serializerSettings
- Newtonsoft.Json.JsonSerializerSettings
Newtonsoft.Json.JsonSerializerSettings. Должен быть либо параметрами для всего приложения (SerializerSettings), либо изначально возвращенным экземпляром CreateSerializerSettings() .
- objectPoolProvider
- ObjectPoolProvider
- options
- MvcOptions
- jsonOptions
- MvcJsonOptions
Применяется к
JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean, Boolean)
- Исходный код:
- JsonPatchInputFormatter.cs
- Исходный код:
- JsonPatchInputFormatter.cs
Внимание!
This constructor is obsolete and will be removed in a future version.
Инициализирует новый экземпляр класса JsonPatchInputFormatter.
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)
Параметры
- serializerSettings
- Newtonsoft.Json.JsonSerializerSettings
Newtonsoft.Json.JsonSerializerSettings. Должен быть либо параметрами для всего приложения (SerializerSettings), либо изначально возвращенным экземпляром CreateSerializerSettings() .
- objectPoolProvider
- ObjectPoolProvider
- suppressInputFormatterBuffering
- Boolean
Флаг для буферизации всего текста запроса перед его десериализацией.
- allowInputFormatterExceptionMessages
- Boolean
Если false
задано значение , сообщения об исключениях десериализации JSON будут заменены универсальным сообщением в состоянии модели.
- Атрибуты