JsonInputFormatter Costruttori

Definizione

Overload

JsonInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider)
Obsoleti.

Inizializza una nuova istanza di JsonInputFormatter.

JsonInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean)
Obsoleti.

Inizializza una nuova istanza di JsonInputFormatter.

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

Inizializza una nuova istanza di JsonInputFormatter.

JsonInputFormatter(ILogger, JsonSerializerSettings, ArrayPool<Char>, ObjectPoolProvider, Boolean, Boolean)
Obsoleti.

Inizializza una nuova istanza di JsonInputFormatter.

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

Origine:
JsonInputFormatter.cs
Origine:
JsonInputFormatter.cs

Attenzione

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

Inizializza una nuova istanza di JsonInputFormatter.

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

Parametri

logger
ILogger

Oggetto ILogger.

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

Oggetto Newtonsoft.Json.JsonSerializerSettings. Devono essere le impostazioni a livello di applicazione (SerializerSettings) o un'istanza CreateSerializerSettings() inizialmente restituita.

charPool
ArrayPool<Char>

Oggetto ArrayPool<T>.

objectPoolProvider
ObjectPoolProvider

Oggetto ObjectPoolProvider.

Attributi

Si applica a

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

Origine:
JsonInputFormatter.cs
Origine:
JsonInputFormatter.cs

Attenzione

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

Inizializza una nuova istanza di JsonInputFormatter.

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

Parametri

logger
ILogger

Oggetto ILogger.

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

Oggetto Newtonsoft.Json.JsonSerializerSettings. Devono essere le impostazioni a livello di applicazione (SerializerSettings) o un'istanza CreateSerializerSettings() inizialmente restituita.

charPool
ArrayPool<Char>

Oggetto ArrayPool<T>.

objectPoolProvider
ObjectPoolProvider

Oggetto ObjectPoolProvider.

suppressInputFormatterBuffering
Boolean

Contrassegnare il buffer dell'intero corpo della richiesta prima di deserializzare la richiesta.

Attributi

Si applica a

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

Origine:
JsonInputFormatter.cs
Origine:
JsonInputFormatter.cs

Inizializza una nuova istanza di JsonInputFormatter.

public:
 JsonInputFormatter(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 JsonInputFormatter (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.JsonInputFormatter : 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.JsonInputFormatter
Public Sub New (logger As ILogger, serializerSettings As JsonSerializerSettings, charPool As ArrayPool(Of Char), objectPoolProvider As ObjectPoolProvider, options As MvcOptions, jsonOptions As MvcJsonOptions)

Parametri

logger
ILogger

Oggetto ILogger.

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

Oggetto Newtonsoft.Json.JsonSerializerSettings. Devono essere le impostazioni a livello di applicazione (SerializerSettings) o un'istanza CreateSerializerSettings() inizialmente restituita.

charPool
ArrayPool<Char>

Oggetto ArrayPool<T>.

objectPoolProvider
ObjectPoolProvider

Oggetto ObjectPoolProvider.

options
MvcOptions

Oggetto MvcOptions.

jsonOptions
MvcJsonOptions

Oggetto MvcJsonOptions.

Si applica a

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

Origine:
JsonInputFormatter.cs
Origine:
JsonInputFormatter.cs

Attenzione

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

Inizializza una nuova istanza di JsonInputFormatter.

public:
 JsonInputFormatter(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 JsonInputFormatter (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.JsonInputFormatter : Microsoft.Extensions.Logging.ILogger * Newtonsoft.Json.JsonSerializerSettings * System.Buffers.ArrayPool<char> * Microsoft.Extensions.ObjectPool.ObjectPoolProvider * bool * bool -> Microsoft.AspNetCore.Mvc.Formatters.JsonInputFormatter
Public Sub New (logger As ILogger, serializerSettings As JsonSerializerSettings, charPool As ArrayPool(Of Char), objectPoolProvider As ObjectPoolProvider, suppressInputFormatterBuffering As Boolean, allowInputFormatterExceptionMessages As Boolean)

Parametri

logger
ILogger

Oggetto ILogger.

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

Oggetto Newtonsoft.Json.JsonSerializerSettings. Devono essere le impostazioni a livello di applicazione (SerializerSettings) o un'istanza CreateSerializerSettings() inizialmente restituita.

charPool
ArrayPool<Char>

Oggetto ArrayPool<T>.

objectPoolProvider
ObjectPoolProvider

Oggetto ObjectPoolProvider.

suppressInputFormatterBuffering
Boolean

Contrassegnare il buffer dell'intero corpo della richiesta prima di deserializzare la richiesta.

allowInputFormatterExceptionMessages
Boolean

Se true, i messaggi di eccezione di deserializzazione JSON verranno sostituiti da un messaggio generico nello stato del modello.

Attributi

Si applica a