XmlSerializer Constructor

XmlSerializer Constructor

 

Initializes a new instance of the XmlSerializer class.

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

NameDescription
System_CAPS_protmethodXmlSerializer()

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the XmlSerializer class.

System_CAPS_pubmethodXmlSerializer(Type)

Initializes a new instance of the XmlSerializer class that can serialize objects of the specified type into XML documents, and deserialize XML documents into objects of the specified type.

System_CAPS_pubmethodXmlSerializer(Type, String)

Initializes a new instance of the XmlSerializer class that can serialize objects of the specified type into XML documents, and deserialize XML documents into objects of the specified type. Specifies the default namespace for all the XML elements.

System_CAPS_pubmethodXmlSerializer(Type, Type[])

Initializes a new instance of the XmlSerializer class that can serialize objects of the specified type into XML documents, and deserialize XML documents into object of a specified type. If a property or field returns an array, the extraTypes parameter specifies objects that can be inserted into the array.

System_CAPS_pubmethodXmlSerializer(Type, XmlAttributeOverrides)

Initializes a new instance of the XmlSerializer class that can serialize objects of the specified type into XML documents, and deserialize XML documents into objects of the specified type. Each object to be serialized can itself contain instances of classes, which this overload can override with other classes.

System_CAPS_pubmethodXmlSerializer(Type, XmlAttributeOverrides, Type[], XmlRootAttribute, String)

Initializes a new instance of the XmlSerializer class that can serialize objects of type Object into XML document instances, and deserialize XML document instances into objects of type Object. Each object to be serialized can itself contain instances of classes, which this overload overrides 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.

System_CAPS_pubmethodXmlSerializer(Type, XmlAttributeOverrides, Type[], XmlRootAttribute, String, String)

Initializes a new instance of the XmlSerializer class that can serialize objects of type Object into XML document instances, and deserialize XML document instances into objects of type Object. Each object to be serialized can itself contain instances of classes, which this overload overrides 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.

System_CAPS_pubmethodXmlSerializer(Type, XmlAttributeOverrides, Type[], XmlRootAttribute, String, String, Evidence)

Obsolete. This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the XmlSerializer class that can serialize objects of the specified type into XML document instances, and deserialize XML document instances into objects of the specified type. This overload allows you to supply other types that can be encountered during a serialization or deserialization operation, as well as a default namespace for all XML elements, the class to use as the XML root element, its location, and credentials required for access.

System_CAPS_pubmethodXmlSerializer(Type, XmlRootAttribute)

Initializes a new instance of the XmlSerializer class that can serialize objects of the specified type into XML documents, and deserialize an XML document into object of the specified type. It also specifies the class to use as the XML root element.

System_CAPS_pubmethodXmlSerializer(XmlTypeMapping)

Initializes an instance of the XmlSerializer class using an object that maps one type to another.

Return to top
Show:
© 2016 Microsoft