Share via


JsonHelper(JsonOutputFormatter, ArrayPool<Char>) Constructor

Definition

Initializes a new instance of JsonHelper that is backed by 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))

Parameters

jsonOutputFormatter
JsonOutputFormatter

The JsonOutputFormatter used to serialize JSON.

charPool
ArrayPool<Char>

The ArrayPool<T> for use with custom Newtonsoft.Json.JsonSerializerSettings (see Serialize(Object, JsonSerializerSettings)).

Applies to