Udostępnij za pośrednictwem


JsonArray.WriteTo(Utf8JsonWriter, JsonSerializerOptions) Metoda

Definicja

Zapisuje element JsonNode w podanym Utf8JsonWriter formacie JSON.

public override void WriteTo (System.Text.Json.Utf8JsonWriter writer, System.Text.Json.JsonSerializerOptions? options = default);
override this.WriteTo : System.Text.Json.Utf8JsonWriter * System.Text.Json.JsonSerializerOptions -> unit
Public Overrides Sub WriteTo (writer As Utf8JsonWriter, Optional options As JsonSerializerOptions = Nothing)

Parametry

writer
Utf8JsonWriter

Element Utf8JsonWriter.

options
JsonSerializerOptions

Opcje kontrolowania zachowania serializacji.

Wyjątki

Parametr writer to null.

Dotyczy