Serialize Method (Object, XmlSerializationWriter)

XmlSerializer.Serialize Method (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.

Namespace:   System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)

abstract Serialize : 
        o:Object *
        writer:XmlSerializationWriter -> unit
override Serialize : 
        o:Object *
        writer:XmlSerializationWriter -> unit

Parameters

o
Type: System.Object

The Object to serialize.

writer
Type: System.Xml.Serialization.XmlSerializationWriter

The XmlSerializationWriter used to write the XML document.

Exception Condition
NotImplementedException

Any attempt is made to access the method when the method is not overridden in a descendant class.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Return to top
Show:
© 2016 Microsoft