共用方式為


JsonHelper(JsonOutputFormatter, ArrayPool<Char>) 建構函式

定義

初始化 的新實例,這個實例 JsonHelper 是由 jsonOutputFormatter 所支援。

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

參數

jsonOutputFormatter
JsonOutputFormatter

用來 JsonOutputFormatter 序列化 JSON 的 。

charPool
ArrayPool<Char>

用於 ArrayPool<T> 自訂 Newtonsoft.Json.JsonSerializerSettings (的 ,請參閱 Serialize(Object, JsonSerializerSettings)) 。

適用於