JsonDocument.WriteTo(Utf8JsonWriter) 方法

定义

将文档作为 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)

参数

writer
Utf8JsonWriter

要向其写入文档的编写器。

例外

参数 writernull.

ValueKindRootElement将导致 JSON 无效。

JsonDocument父级已被释放。

适用于