Compartilhar via


JsonHelper(JsonOutputFormatter, ArrayPool<Char>) Construtor

Definição

Inicializa uma nova instância do JsonHelper que é apoiada por 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))

Parâmetros

jsonOutputFormatter
JsonOutputFormatter

O JsonOutputFormatter usado para serializar JSON.

charPool
ArrayPool<Char>

O ArrayPool<T> para uso com personalizado Newtonsoft.Json.JsonSerializerSettings (consulte Serialize(Object, JsonSerializerSettings)).

Aplica-se a