語言

JsonProperty.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。

Name 太大,不可能是 JSON 物件屬性。

這些 JSON 屬性Value中的 JSONValueKind,會導致 JSON 無效。

父母 JsonDocument 已被處理掉。

適用於