DataContractJsonSerializer.WriteStartObject 方法

定义

写入开始 XML 元素,以便将对象序列化为可映射到 JavaScript 对象表示法 (JSON) 的 XML。

重载

WriteStartObject(XmlDictionaryWriter, Object)

使用 XmlDictionaryWriter 写入开始 XML 元素,以便将对象序列化为可映射到 JavaScript 对象表示法 (JSON) 的 XML。

WriteStartObject(XmlWriter, Object)

使用 XmlWriter 写入开始 XML 元素,以便将对象序列化为可映射到 JavaScript 对象表示法 (JSON) 的 XML。

WriteStartObject(XmlDictionaryWriter, Object)

Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs

使用 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)

Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs
Source:
DataContractJsonSerializer.cs

使用 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)

参数

writer
XmlWriter

用于写入 XML 开始元素的 XmlWriter

graph
Object

要写入的对象。

适用于