This topic has not yet been rated - Rate this topic

XmlSerializer Methods

April 12, 2014

The XmlSerializer type exposes the following members.

  NameDescription
Public method CanDeserialize Gets a value that indicates whether this XmlSerializer can deserialize a specified XML document.
Public method Deserialize(Stream) Deserializes the XML document contained by the specified Stream.
Public method Deserialize(TextReader) Deserializes the XML document contained by the specified TextReader.
Public method Deserialize(XmlReader) Deserializes the XML document contained by the specified XmlReader.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member FromMappings(XmlMapping[]) Infrastructure. Returns an array of XmlSerializer objects created from an array of XmlTypeMapping objects.
Public method Static member FromMappings(XmlMapping[], Type) Infrastructure. Returns an instance of the XmlSerializer class from the specified mappings.
Public method Static member FromTypes Returns an array of XmlSerializer objects created from an array of types.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Serialize(Stream, Object) Serializes the specified Object and writes the XML document to a file using the specified Stream.
Public method Serialize(TextWriter, Object) Serializes the specified Object and writes the XML document to a file using the specified TextWriter.
Public method Serialize(XmlWriter, Object) Serializes the specified Object and writes the XML document to a file using the specified XmlWriter.
Public method Serialize(Stream, Object, XmlSerializerNamespaces) Serializes the specified Object and writes the XML document to a file using the specified Stream that references the specified namespaces.
Public method 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.
Public method Serialize(XmlWriter, Object, XmlSerializerNamespaces) Serializes the specified Object and writes the XML document to a file using the specified XmlWriter and references the specified namespaces.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.