JsonDocument.WriteTo(Utf8JsonWriter) Metoda

Definicja

Zapisuje dokument w podanym składniku zapisywania 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

Składnik zapisywania, do którego ma być zapisywany dokument.

Wyjątki

Parametr writer to null.

Spowoduje ValueKind to RootElement nieprawidłowy kod JSON.

Element nadrzędny JsonDocument został usunięty.

Dotyczy