共用方式為


JsonOutputFormatter.WriteObject(TextWriter, Object) 方法

定義

使用指定的 將指定的 valuewriter 寫入為 JSON。

public:
 void WriteObject(System::IO::TextWriter ^ writer, System::Object ^ value);
public void WriteObject (System.IO.TextWriter writer, object value);
member this.WriteObject : System.IO.TextWriter * obj -> unit
Public Sub WriteObject (writer As TextWriter, value As Object)

參數

writer
TextWriter

TextWriter用來寫入 的value

value
Object

要寫入為 JSON 的值。

適用於