Share via


XmlSerializer Constructor

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

Initializes a new instance of the XmlSerializer class.

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

Overload List

  Name Description
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 XmlSerializer() Infrastructure. Initializes a new instance of the XmlSerializer class.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 XmlSerializer(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.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 XmlSerializer(XmlTypeMapping) Initializes an instance of the XmlSerializer class using an object that maps one type to another.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 XmlSerializer(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.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 XmlSerializer(Type, array<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 a specified type. If a property or field returns an array, the extraTypes parameter specifies objects that can be inserted into the array.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 XmlSerializer(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.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 XmlSerializer(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.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 XmlSerializer(Type, XmlAttributeOverrides, array<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.

Top