DataContractJsonSerializer.WriteStartObject Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes the opening XML element for serializing an object to XML that can be mapped to JavaScript Object Notation (JSON).
Overloads
| WriteStartObject(XmlDictionaryWriter, Object) |
Writes the opening XML element for serializing an object to XML that can be mapped to JavaScript Object Notation (JSON) using an XmlDictionaryWriter. |
| WriteStartObject(XmlWriter, Object) |
Writes the opening XML element for serializing an object to XML that can be mapped to JavaScript Object Notation (JSON) using an XmlWriter. |
WriteStartObject(XmlDictionaryWriter, Object)
Writes the opening XML element for serializing an object to XML that can be mapped to JavaScript Object Notation (JSON) using an XmlDictionaryWriter.
public:
override void WriteStartObject(System::Xml::XmlDictionaryWriter ^ writer, System::Object ^ graph);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public override void WriteStartObject(System.Xml.XmlDictionaryWriter writer, object? graph);
public override void WriteStartObject(System.Xml.XmlDictionaryWriter writer, object? graph);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public override void WriteStartObject(System.Xml.XmlDictionaryWriter writer, object? graph);
public override void WriteStartObject(System.Xml.XmlDictionaryWriter writer, object graph);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
override this.WriteStartObject : System.Xml.XmlDictionaryWriter * obj -> unit
override this.WriteStartObject : System.Xml.XmlDictionaryWriter * obj -> unit
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
override this.WriteStartObject : System.Xml.XmlDictionaryWriter * obj -> unit
Public Overrides Sub WriteStartObject (writer As XmlDictionaryWriter, graph As Object)
Parameters
- writer
- XmlDictionaryWriter
The XmlDictionaryWriter used to write the XML start element.
- graph
- Object
The object to write.
- Attributes
Applies to
WriteStartObject(XmlWriter, Object)
Writes the opening XML element for serializing an object to XML that can be mapped to JavaScript Object Notation (JSON) using an XmlWriter.
public:
override void WriteStartObject(System::Xml::XmlWriter ^ writer, System::Object ^ graph);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public override void WriteStartObject(System.Xml.XmlWriter writer, object? graph);
public override void WriteStartObject(System.Xml.XmlWriter writer, object? graph);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
public override void WriteStartObject(System.Xml.XmlWriter writer, object? graph);
public override void WriteStartObject(System.Xml.XmlWriter writer, object graph);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
override this.WriteStartObject : System.Xml.XmlWriter * obj -> unit
override this.WriteStartObject : System.Xml.XmlWriter * obj -> unit
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")>]
override this.WriteStartObject : System.Xml.XmlWriter * obj -> unit
Public Overrides Sub WriteStartObject (writer As XmlWriter, graph As Object)
Parameters
- graph
- Object
The object to write.
- Attributes