Sdílet prostřednictvím


NewtonsoftJsonOutputFormatter Konstruktory

Definice

Přetížení

NewtonsoftJsonOutputFormatter(JsonSerializerSettings, ArrayPool<Char>, MvcOptions)
Zastaralé.

Inicializuje novou NewtonsoftJsonOutputFormatter instanci.

NewtonsoftJsonOutputFormatter(JsonSerializerSettings, ArrayPool<Char>, MvcOptions, MvcNewtonsoftJsonOptions)

Inicializuje novou NewtonsoftJsonOutputFormatter instanci.

NewtonsoftJsonOutputFormatter(JsonSerializerSettings, ArrayPool<Char>, MvcOptions)

Zdroj:
NewtonsoftJsonOutputFormatter.cs
Zdroj:
NewtonsoftJsonOutputFormatter.cs
Zdroj:
NewtonsoftJsonOutputFormatter.cs
Zdroj:
NewtonsoftJsonOutputFormatter.cs
Zdroj:
NewtonsoftJsonOutputFormatter.cs
Zdroj:
NewtonsoftJsonOutputFormatter.cs
Zdroj:
NewtonsoftJsonOutputFormatter.cs

Upozornění

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

Inicializuje novou NewtonsoftJsonOutputFormatter instanci.

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

Parametry

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

Hodnota Newtonsoft.Json.JsonSerializerSettings Mělo by se jednat o nastavení pro celou aplikaci (SerializerSettings) nebo o instanci CreateSerializerSettings() , která se původně vrátila.

charPool
ArrayPool<Char>

Hodnota ArrayPool<T>

mvcOptions
MvcOptions

Hodnota MvcOptions

Atributy

Platí pro

NewtonsoftJsonOutputFormatter(JsonSerializerSettings, ArrayPool<Char>, MvcOptions, MvcNewtonsoftJsonOptions)

Zdroj:
NewtonsoftJsonOutputFormatter.cs
Zdroj:
NewtonsoftJsonOutputFormatter.cs
Zdroj:
NewtonsoftJsonOutputFormatter.cs
Zdroj:
NewtonsoftJsonOutputFormatter.cs

Inicializuje novou NewtonsoftJsonOutputFormatter instanci.

public NewtonsoftJsonOutputFormatter (Newtonsoft.Json.JsonSerializerSettings serializerSettings, System.Buffers.ArrayPool<char> charPool, Microsoft.AspNetCore.Mvc.MvcOptions mvcOptions, Microsoft.AspNetCore.Mvc.MvcNewtonsoftJsonOptions? jsonOptions);
new Microsoft.AspNetCore.Mvc.Formatters.NewtonsoftJsonOutputFormatter : Newtonsoft.Json.JsonSerializerSettings * System.Buffers.ArrayPool<char> * Microsoft.AspNetCore.Mvc.MvcOptions * Microsoft.AspNetCore.Mvc.MvcNewtonsoftJsonOptions -> Microsoft.AspNetCore.Mvc.Formatters.NewtonsoftJsonOutputFormatter
Public Sub New (serializerSettings As JsonSerializerSettings, charPool As ArrayPool(Of Char), mvcOptions As MvcOptions, jsonOptions As MvcNewtonsoftJsonOptions)

Parametry

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

Hodnota Newtonsoft.Json.JsonSerializerSettings Mělo by se jednat o nastavení pro celou aplikaci (SerializerSettings) nebo o instanci CreateSerializerSettings() , která se původně vrátila.

charPool
ArrayPool<Char>

Hodnota ArrayPool<T>

mvcOptions
MvcOptions

Hodnota MvcOptions

Platí pro