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

要将文档写入到的编写器。

例外

writer 参数为 null

RootElementValueKind 会导致无效的 JSON。

适用于