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

定义

初始化由 jsonOutputFormatter支持的新实例JsonHelper

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

适用于