共用方式為


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()

charPool
ArrayPool<Char>

ArrayPool<T>

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()

charPool
ArrayPool<Char>

ArrayPool<T>

mvcOptions
MvcOptions

MvcOptions

適用於