Поделиться через


NewtonsoftJsonOutputFormatter Конструкторы

Определение

Перегрузки

NewtonsoftJsonOutputFormatter(JsonSerializerSettings, ArrayPool<Char>, MvcOptions)
Устаревшие..

Инициализирует новый экземпляр класса NewtonsoftJsonOutputFormatter.

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

Инициализирует новый экземпляр класса NewtonsoftJsonOutputFormatter.

NewtonsoftJsonOutputFormatter(JsonSerializerSettings, ArrayPool<Char>, MvcOptions)

Исходный код:
NewtonsoftJsonOutputFormatter.cs
Исходный код:
NewtonsoftJsonOutputFormatter.cs
Исходный код:
NewtonsoftJsonOutputFormatter.cs
Исходный код:
NewtonsoftJsonOutputFormatter.cs
Исходный код:
NewtonsoftJsonOutputFormatter.cs
Исходный код:
NewtonsoftJsonOutputFormatter.cs
Исходный код:
NewtonsoftJsonOutputFormatter.cs

Внимание!

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

Инициализирует новый экземпляр класса NewtonsoftJsonOutputFormatter.

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)

Параметры

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

Newtonsoft.Json.JsonSerializerSettings. Должен быть либо параметрами на уровне приложения (SerializerSettings), либо изначально возвращенным экземпляром CreateSerializerSettings() .

mvcOptions
MvcOptions

MvcOptions.

Атрибуты

Применяется к

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

Исходный код:
NewtonsoftJsonOutputFormatter.cs
Исходный код:
NewtonsoftJsonOutputFormatter.cs
Исходный код:
NewtonsoftJsonOutputFormatter.cs
Исходный код:
NewtonsoftJsonOutputFormatter.cs

Инициализирует новый экземпляр класса NewtonsoftJsonOutputFormatter.

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)

Параметры

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

Newtonsoft.Json.JsonSerializerSettings. Должен быть либо параметрами на уровне приложения (SerializerSettings), либо изначально возвращенным экземпляром CreateSerializerSettings() .

mvcOptions
MvcOptions

MvcOptions.

Применяется к