Udostępnij za pośrednictwem


JsonPatchInputFormatter Konstruktory

Definicja

Przeciążenia

JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider)
Przestarzałe.

Inicjuje nowe JsonPatchInputFormatter wystąpienie.

JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean)
Przestarzałe.

Inicjuje nowe JsonPatchInputFormatter wystąpienie.

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

Inicjuje nowe JsonPatchInputFormatter wystąpienie.

JsonPatchInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean, Boolean)
Przestarzałe.

Inicjuje nowe JsonPatchInputFormatter wystąpienie.

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

Źródło:
JsonPatchInputFormatter.cs
Źródło:
JsonPatchInputFormatter.cs

Przestroga

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

Inicjuje nowe JsonPatchInputFormatter wystąpienie.

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)

Parametry

logger
ILogger

Element ILogger.

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

Element Newtonsoft.Json.JsonSerializerSettings. Powinny być ustawieniami obejmującymi całą aplikację (SerializerSettings) lub początkowo zwracanym wystąpieniem CreateSerializerSettings() .

charPool
ArrayPool<Char>

Element ArrayPool<T>.

objectPoolProvider
ObjectPoolProvider

Element ObjectPoolProvider.

Atrybuty

Dotyczy

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

Źródło:
JsonPatchInputFormatter.cs
Źródło:
JsonPatchInputFormatter.cs

Przestroga

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

Inicjuje nowe JsonPatchInputFormatter wystąpienie.

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)

Parametry

logger
ILogger

Element ILogger.

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

Element Newtonsoft.Json.JsonSerializerSettings. Powinny być ustawieniami obejmującymi całą aplikację (SerializerSettings) lub początkowo zwracanym wystąpieniem CreateSerializerSettings() .

charPool
ArrayPool<Char>

Element ArrayPool<T>.

objectPoolProvider
ObjectPoolProvider

Element ObjectPoolProvider.

suppressInputFormatterBuffering
Boolean

Flaga buforowania całej treści żądania przed deserializacji.

Atrybuty

Dotyczy

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

Źródło:
JsonPatchInputFormatter.cs
Źródło:
JsonPatchInputFormatter.cs

Inicjuje nowe JsonPatchInputFormatter wystąpienie.

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)

Parametry

logger
ILogger

Element ILogger.

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

Element Newtonsoft.Json.JsonSerializerSettings. Powinny być ustawieniami obejmującymi całą aplikację (SerializerSettings) lub początkowo zwracanym wystąpieniem CreateSerializerSettings() .

charPool
ArrayPool<Char>

Element ArrayPool<T>.

objectPoolProvider
ObjectPoolProvider

Element ObjectPoolProvider.

options
MvcOptions

Element MvcOptions.

jsonOptions
MvcJsonOptions

Element MvcJsonOptions.

Dotyczy

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

Źródło:
JsonPatchInputFormatter.cs
Źródło:
JsonPatchInputFormatter.cs

Przestroga

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

Inicjuje nowe JsonPatchInputFormatter wystąpienie.

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)

Parametry

logger
ILogger

Element ILogger.

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

Element Newtonsoft.Json.JsonSerializerSettings. Powinny być ustawieniami obejmującymi całą aplikację (SerializerSettings) lub początkowo zwracanym wystąpieniem CreateSerializerSettings() .

charPool
ArrayPool<Char>

Element ArrayPool<T>.

objectPoolProvider
ObjectPoolProvider

Element ObjectPoolProvider.

suppressInputFormatterBuffering
Boolean

Flaga buforowania całej treści żądania przed deserializacji.

allowInputFormatterExceptionMessages
Boolean

Jeśli false, komunikaty wyjątków deserializacji JSON zostaną zastąpione przez ogólny komunikat w stanie modelu.

Atrybuty

Dotyczy