JsonNode.WriteTo(Utf8JsonWriter, JsonSerializerOptions) 方法

定义

JsonNode 写入以 JSON 格式提供的 Utf8JsonWriter

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)

参数

options
JsonSerializerOptions

用于控制序列化行为的选项。

例外

writer 参数为 null

适用于