JsonNode.WriteTo(Utf8JsonWriter, JsonSerializerOptions) Metoda

Definicja

Zapisuje element JsonNode w podanym Utf8JsonWriter formacie JSON.

public abstract void WriteTo (System.Text.Json.Utf8JsonWriter writer, System.Text.Json.JsonSerializerOptions? options = default);
abstract member WriteTo : System.Text.Json.Utf8JsonWriter * System.Text.Json.JsonSerializerOptions -> unit
Public MustOverride 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 ma wartość null.

Dotyczy