JsonOutputFormatter(JsonSerializerSettings, ArrayPool<Char>) 构造函数

定义

初始化一个新 JsonOutputFormatter 实例。

public:
 JsonOutputFormatter(Newtonsoft::Json::JsonSerializerSettings ^ serializerSettings, System::Buffers::ArrayPool<char> ^ charPool);
public JsonOutputFormatter (Newtonsoft.Json.JsonSerializerSettings serializerSettings, System.Buffers.ArrayPool<char> charPool);
new Microsoft.AspNetCore.Mvc.Formatters.JsonOutputFormatter : Newtonsoft.Json.JsonSerializerSettings * System.Buffers.ArrayPool<char> -> Microsoft.AspNetCore.Mvc.Formatters.JsonOutputFormatter
Public Sub New (serializerSettings As JsonSerializerSettings, charPool As ArrayPool(Of Char))

参数

serializerSettings
Newtonsoft.Json.JsonSerializerSettings

Newtonsoft.Json.JsonSerializerSettings。 应是应用程序范围的设置 (SerializerSettings) 或最初返回的实例 CreateSerializerSettings()

charPool
ArrayPool<Char>

ArrayPool<T>

适用于