XmlSerializer.Serialize Method
Serializes an object into an XML document.
Assembly: System.Xml (in System.Xml.dll)
| Name | Description | |
|---|---|---|
![]() | Serialize(Object, XmlSerializationWriter) | This API supports the product infrastructure and is not intended to be used directly from your code. Serializes the specified Object and writes the XML document to a file using the specified XmlSerializationWriter. |
![]() | Serialize(Stream, Object) | |
![]() | Serialize(Stream, Object, XmlSerializerNamespaces) | |
![]() | Serialize(TextWriter, Object) | Serializes the specified Object and writes the XML document to a file using the specified TextWriter. |
![]() | Serialize(TextWriter, Object, XmlSerializerNamespaces) | Serializes the specified Object and writes the XML document to a file using the specified TextWriter and references the specified namespaces. |
![]() | Serialize(XmlWriter, Object) | |
![]() | Serialize(XmlWriter, Object, XmlSerializerNamespaces) | |
![]() | Serialize(XmlWriter, Object, XmlSerializerNamespaces, String) | Serializes the specified object and writes the XML document to a file using the specified XmlWriter and references the specified namespaces and encoding style. |
![]() | Serialize(XmlWriter, Object, XmlSerializerNamespaces, String, String) |

