Export (0) Print
Expand All

XmlSerializerFactory.CreateSerializer Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Returns a derivation of the XmlSerializerFactory class that is used to serialize a type.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method CreateSerializer(Type) Returns a derivation of the XmlSerializerFactory class that is used to serialize the specified type.
Public method CreateSerializer(XmlTypeMapping) Returns a derivation of the XmlSerializerFactory class using an object that maps one type to another.
Public method CreateSerializer(Type, String) Returns a derivation of the XmlSerializerFactory class that is used to serialize the specified type and namespace.
Public method CreateSerializer(Type, Type[]) Returns a derivation of the XmlSerializerFactory class that is used to serialize the specified type. If a property or field returns an array, the extraTypes parameter specifies objects that can be inserted into the array.
Public method CreateSerializer(Type, XmlAttributeOverrides) Returns a derivation of the XmlSerializer class that can serialize objects of the specified type into XML documents, and vice versa. Each object to be serialized can itself contain instances of classes, which this overload can override with other classes.
Public method CreateSerializer(Type, XmlRootAttribute) Returns a derivation of the XmlSerializer class that can serialize objects of the specified type into XML documents, and vice versa. Specifies the object that represents the XML root element.
Public method CreateSerializer(Type, XmlAttributeOverrides, Type[], XmlRootAttribute, String) Returns a derivation of the XmlSerializer class that can serialize objects of the specified type into XML document instances, and vice versa. Each object to be serialized can itself contain instances of classes, which this overload can override with other classes. This overload also specifies the default namespace for all the XML elements, and the class to use as the XML root element.
Public method CreateSerializer(Type, XmlAttributeOverrides, Type[], XmlRootAttribute, String, String) Returns a derivation of the XmlSerializer class that can serialize objects of the specified type into XML document instances, and vice versa. Each object to be serialized can itself contain instances of classes, which this overload can override with other classes. This overload also specifies the default namespace for all the XML elements, and the class to use as the XML root element.
Public method CreateSerializer(Type, XmlAttributeOverrides, Type[], XmlRootAttribute, String, String, Evidence) Obsolete. Returns a derivation of the XmlSerializer class that can serialize objects of the specified type into XML document instances, and vice versa. Each object to be serialized can itself contain instances of classes, which this overload can override with other classes. This overload also specifies the default namespace for all the XML elements, and the class to use as the XML root element.
Top
Show:
© 2014 Microsoft