JsonPatchInputFormatter 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider)
警告
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)
警告
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 執行個體。
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)
警告
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 還原序列化例外狀況訊息將會由模型狀態中的泛型訊息取代。
- 屬性