Freigeben über


JsonHelper(JsonOutputFormatter, ArrayPool<Char>) Konstruktor

Definition

Initialisiert eine neue instance von, die JsonHelper von jsonOutputFormatterunterstützt wird.

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

Parameter

jsonOutputFormatter
JsonOutputFormatter

Die , die JsonOutputFormatter zum Serialisieren von JSON verwendet wird.

charPool
ArrayPool<Char>

Die ArrayPool<T> zur Verwendung mit benutzerdefinierten Newtonsoft.Json.JsonSerializerSettings (siehe Serialize(Object, JsonSerializerSettings)).

Gilt für: