System.Xml.Serialization.XmlSerializer: Method Members

The methods of System.Xml.Serialization.XmlSerializer are listed below. For a list of all members, see the XmlSerializer Members list.

See Also: Inherited members from System.Object

Public Methods

CanDeserialize(System.Xml.XmlReader) : bool

Gets a value that indicates whether this System.Xml.Serialization.XmlSerializer can deserialize a specified XML document.

Deserialize(System.IO.Stream) : object

Deserializes the XML document contained by the specified System.IO.Stream.

Deserialize(System.IO.TextReader) : object

Deserializes the XML document contained by the specified System.IO.TextReader.

Deserialize(System.Xml.XmlReader) : object

Deserializes the XML document contained by the specified System.xml.XmlReader.

Deserialize(System.Xml.XmlReader, string) : object

Deserializes the XML document contained by the specified System.xml.XmlReader and encoding style.

Deserialize(System.Xml.XmlReader, XmlDeserializationEvents) : object

Deserializes an XML document contained by the specified System.Xml.XmlReader and allows the overriding of events that occur during deserialization.

Deserialize(System.Xml.XmlReader, string, XmlDeserializationEvents) : object

Deserializes the object using the data contained by the specified System.Xml.XmlReader.

static
FromMappings(XmlMapping[]) : XmlSerializer[]

Returns an array of System.Xml.Serialization.XmlSerializer objects created from an array of System.Xml.Serialization.XmlTypeMapping objects.

static
FromMappings(XmlMapping[], System.Security.Policy.Evidence) : XmlSerializer[]

Returns an instance of the System.Xml.Serialization.XmlSerializer class created from mappings of one XML type to another.

static
FromMappings(XmlMapping[], Type) : XmlSerializer[]

Returns an instance of the System.Xml.Serialization.XmlSerializer class from the specified mappings.

static
FromTypes(Type[]) : XmlSerializer[]

Returns an array of System.Xml.Serialization.XmlSerializer objects created from an array of types.

static
GenerateSerializer(Type[], XmlMapping[]) : System.Reflection.Assembly

Returns an assembly that contains custom-made serializers used to serialize or deserialize the specified type or types, using the specified mappings.

static
GenerateSerializer(Type[], XmlMapping[], System.CodeDom.Compiler.CompilerParameters) : System.Reflection.Assembly

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.

static
GetXmlSerializerAssemblyName(Type) : string

Returns the name of the assembly that contains one or more versions of the System.Xml.Serialization.XmlSerializer especially created to serialize or deserialize the specified type.

static
GetXmlSerializerAssemblyName(Type, string) : string

Returns the name of the assembly that contains the serializer for the specified type in the specified namespace.

Serialize(System.IO.Stream, object)

Serializes the specified object and writes the XML document to a file using the specified System.IO.Stream.

Serialize(System.IO.TextWriter, object)

Serializes the specified object and writes the XML document to a file using the specified System.IO.TextWriter.

Serialize(System.Xml.XmlWriter, object)

Serializes the specified object and writes the XML document to a file using the specified System.Xml.XmlWriter.

Serialize(System.IO.Stream, object, XmlSerializerNamespaces)

Serializes the specified object and writes the XML document to a file using the specified System.IO.Streamthat references the specified namespaces.

Serialize(System.IO.TextWriter, object, XmlSerializerNamespaces)

Serializes the specified object and writes the XML document to a file using the specified System.IO.TextWriter and references the specified namespaces.

Serialize(System.Xml.XmlWriter, object, XmlSerializerNamespaces)

Serializes the specified object and writes the XML document to a file using the specified System.Xml.XmlWriter and references the specified namespaces.

Serialize(System.Xml.XmlWriter, object, XmlSerializerNamespaces, string)

Serializes the specified object and writes the XML document to a file using the specified System.Xml.XmlWriter and references the specified namespaces and encoding style.

Serialize(System.Xml.XmlWriter, object, XmlSerializerNamespaces, string, string)

Serializes the specified object and writes the XML document to a file using the specified System.Xml.XmlWriter, XML namespaces, and encoding.

Protected Methods

CreateReader() : XmlSerializationReader

Returns an object used to read the XML document to be serialized.

CreateWriter() : XmlSerializationWriter

When overridden in a derived class, returns a writer used to serialize the object.

Deserialize(XmlSerializationReader) : object

Deserializes the XML document contained by the specified System.Xml.Serialization.XmlSerializationReader.

Serialize(object, XmlSerializationWriter)

Serializes the specified object and writes the XML document to a file using the specified System.Xml.Serialization.XmlSerializationWriter.