DataContractJsonSerializer.WriteStartObject 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
寫入開頭 XML 項目,將物件序列化為可以對應至 JavaScript 物件標記法 (JSON) 的 XML。
多載
WriteStartObject(XmlDictionaryWriter, Object) |
使用 XmlDictionaryWriter 寫入開頭 XML 項目,將物件序列化為可以對應至 JavaScript 物件標記法 (JSON) 的 XML。 |
WriteStartObject(XmlWriter, Object) |
使用 XmlWriter 寫入開頭 XML 項目,將物件序列化為可以對應至 JavaScript 物件標記法 (JSON) 的 XML。 |
WriteStartObject(XmlDictionaryWriter, Object)
使用 XmlDictionaryWriter 寫入開頭 XML 項目,將物件序列化為可以對應至 JavaScript 物件標記法 (JSON) 的 XML。
public:
override void WriteStartObject(System::Xml::XmlDictionaryWriter ^ writer, System::Object ^ graph);
public override void WriteStartObject (System.Xml.XmlDictionaryWriter writer, object? graph);
public override void WriteStartObject (System.Xml.XmlDictionaryWriter writer, object graph);
override this.WriteStartObject : System.Xml.XmlDictionaryWriter * obj -> unit
Public Overrides Sub WriteStartObject (writer As XmlDictionaryWriter, graph As Object)
參數
- writer
- XmlDictionaryWriter
用於寫入 XML 開始項目的 XmlDictionaryWriter。
- graph
- Object
要寫入的物件。
適用於
WriteStartObject(XmlWriter, Object)
使用 XmlWriter 寫入開頭 XML 項目,將物件序列化為可以對應至 JavaScript 物件標記法 (JSON) 的 XML。
public:
override void WriteStartObject(System::Xml::XmlWriter ^ writer, System::Object ^ graph);
public override void WriteStartObject (System.Xml.XmlWriter writer, object? graph);
public override void WriteStartObject (System.Xml.XmlWriter writer, object graph);
override this.WriteStartObject : System.Xml.XmlWriter * obj -> unit
Public Overrides Sub WriteStartObject (writer As XmlWriter, graph As Object)
參數
- graph
- Object
要寫入的物件。