共用方式為


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>

適用於