XmlSerializer Members

Serializes and deserializes objects into and from XML documents. The XmlSerializer enables you to control how objects are encoded into XML.

The XmlSerializer type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework XmlSerializer Overloaded. Initializes a new instance of the XmlSerializer class.
Top

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework 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 Supported by the .NET Compact Framework Supported by the XNA Framework Deserialize Overloaded. Deserializes an XML document.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework 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 Infrastructure. Overloaded. Returns an instance of the XmlSerializer class from the specified mappings.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework FromTypes Returns an array of XmlSerializer objects created from an array of types.
Public method Static member GenerateSerializer Infrastructure. Overloaded. Returns an assembly that contains typed serializers.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method Static member GetXmlSerializerAssemblyName Infrastructure. Overloaded. Returns the name of the assembly that contains one or more versions of the XmlSerializer especially created to serialize or deserialize specific types.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Serialize Overloaded. Serializes an object into an XML document.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public event Supported by the .NET Compact Framework Supported by the XNA Framework UnknownAttribute Occurs when the XmlSerializer encounters an XML attribute of unknown type during deserialization.
Public event Supported by the .NET Compact Framework Supported by the XNA Framework UnknownElement Occurs when the XmlSerializer encounters an XML element of unknown type during deserialization.
Public event Supported by the .NET Compact Framework Supported by the XNA Framework UnknownNode Occurs when the XmlSerializer encounters an XML node of unknown type during deserialization.
Public event Supported by the .NET Compact Framework Supported by the XNA Framework UnreferencedObject Occurs during deserialization of a SOAP-encoded XML stream, when the XmlSerializer encounters a recognized type that is not used or is unreferenced.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft