Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlSerializer Methods

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.
Protected method CreateReader Infrastructure. Returns an object used to read the XML document to be serialized.
Protected method CreateWriter Infrastructure. When overridden in a derived class, returns a writer used to serialize the object.
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.
Protected method Deserialize(XmlSerializationReader) Infrastructure. Deserializes the XML document contained by the specified XmlSerializationReader.
Public method Deserialize(XmlReader, String) Deserializes the XML document contained by the specified XmlReader and encoding style.
Public method Deserialize(XmlReader, XmlDeserializationEvents) Deserializes an XML document contained by the specified XmlReader and allows the overriding of events that occur during deserialization.
Public method Deserialize(XmlReader, String, XmlDeserializationEvents) Infrastructure. Deserializes the object using the data 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 it 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[], Evidence) Obsolete. Returns an instance of the XmlSerializer class created from mappings of one XML type to another.
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 Static member GenerateSerializer(Type[], XmlMapping[]) Infrastructure. Returns an assembly that contains custom-made serializers used to serialize or deserialize the specified type or types, using the specified mappings.
Public method Static member GenerateSerializer(Type[], XmlMapping[], CompilerParameters) Infrastructure. Returns an assembly that contains custom-made serializers used to serialize or deserialize the specified type or types, using the specified mappings and compiler settings and options.
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.)
Public method Static member GetXmlSerializerAssemblyName(Type) Returns the name of the assembly that contains one or more versions of the XmlSerializer especially created to serialize or deserialize the specified type.
Public method Static member GetXmlSerializerAssemblyName(Type, String) Returns the name of the assembly that contains the serializer for the specified type in the specified namespace.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method Serialize(Object, XmlSerializationWriter) Infrastructure. Serializes the specified Object and writes the XML document to a file using the specified XmlSerializationWriter.
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 Streamthat 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 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.
Public method Serialize(XmlWriter, Object, XmlSerializerNamespaces, String, String) Serializes the specified Object and writes the XML document to a file using the specified XmlWriter, XML namespaces, and encoding.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Community Additions

Show:
© 2014 Microsoft