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

要將屬性寫入其中的寫入器。

例外狀況

writernull

Name 大小太大,無法成為 JSON 物件屬性。

這個 JSON 屬性 ValueValueKind 會導致 JSON 無效。

JsonDocument 已經過處置。

適用於