JsonDocument.WriteTo(Utf8JsonWriter) Metoda

Definicja

Zapisuje dokument w podanym zapisie jako wartość JSON.

public:
 void WriteTo(System::Text::Json::Utf8JsonWriter ^ writer);
public void WriteTo (System.Text.Json.Utf8JsonWriter writer);
member this.WriteTo : System.Text.Json.Utf8JsonWriter -> unit
Public Sub WriteTo (writer As Utf8JsonWriter)

Parametry

writer
Utf8JsonWriter

Moduł zapisujący, do którego ma być zapisywany dokument.

Wyjątki

Parametr writer ma wartość null.

Spowoduje ValueKind to RootElement nieprawidłowy kod JSON.

Element nadrzędny JsonDocument został usunięty.

Dotyczy