Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DataContractSerializer Methods

The DataContractSerializer type exposes the following members.

  Name Description
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsStartObject(XmlDictionaryReader) Determines whether the XmlDictionaryReader is positioned on an object that can be deserialized. (Overrides XmlObjectSerializer.IsStartObject(XmlDictionaryReader).)
Public method IsStartObject(XmlReader) Determines whether the XmlReader is positioned on an object that can be deserialized. (Overrides XmlObjectSerializer.IsStartObject(XmlReader).)
Public method ReadObject(Stream) Reads the XML stream or document with a Stream and returns the deserialized object. (Inherited from XmlObjectSerializer.)
Public method ReadObject(XmlDictionaryReader) Reads the XML document or stream with an XmlDictionaryReader and returns the deserialized object. (Inherited from XmlObjectSerializer.)
Public method ReadObject(XmlReader) Reads the XML stream with an XmlReader and returns the deserialized object. (Overrides XmlObjectSerializer.ReadObject(XmlReader).)
Public method ReadObject(XmlDictionaryReader, Boolean) Reads the XML stream with an XmlDictionaryReader and returns the deserialized object, and also specifies whether a check is made to verify the object name before reading its value. (Overrides XmlObjectSerializer.ReadObject(XmlDictionaryReader, Boolean).)
Public method ReadObject(XmlReader, Boolean) Reads the XML stream with an XmlReader and returns the deserialized object, and also specifies whether a check is made to verify the object name before reading its value. (Overrides XmlObjectSerializer.ReadObject(XmlReader, Boolean).)
Public method ReadObject(XmlDictionaryReader, Boolean, DataContractResolver) Reads an XML document or document stream and returns the deserialized object. The method includes a parameter to specify whether the object name is verified is validated, and a resolver for mapping xsi:type declarations at runtime.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method WriteEndObject(XmlDictionaryWriter) Writes the closing XML element using an XmlDictionaryWriter. (Overrides XmlObjectSerializer.WriteEndObject(XmlDictionaryWriter).)
Public method WriteEndObject(XmlWriter) Writes the closing XML element using an XmlWriter. (Overrides XmlObjectSerializer.WriteEndObject(XmlWriter).)
Public method WriteObject(Stream, Object) Writes the complete content (start, content, and end) of the object to the XML document or stream with the specified Stream. (Inherited from XmlObjectSerializer.)
Public method WriteObject(XmlDictionaryWriter, Object) Writes the complete content (start, content, and end) of the object to the XML document or stream with the specified XmlDictionaryWriter. (Inherited from XmlObjectSerializer.)
Public method WriteObject(XmlWriter, Object) Writes all the object data (starting XML element, content, and closing element) to an XML document or stream with an XmlWriter. (Overrides XmlObjectSerializer.WriteObject(XmlWriter, Object).)
Public method WriteObject(XmlDictionaryWriter, Object, DataContractResolver) Writes all the object data (starting XML element, content, and enclosing element) to an XML document or stream using the specified XmlDictionaryWriter. The method includes a resolver for mapping xsi:type declarations at runtime.
Public method WriteObjectContent(XmlDictionaryWriter, Object) Writes the XML content using an XmlDictionaryWriter. (Overrides XmlObjectSerializer.WriteObjectContent(XmlDictionaryWriter, Object).)
Public method WriteObjectContent(XmlWriter, Object) Writes the XML content using an XmlWriter. (Overrides XmlObjectSerializer.WriteObjectContent(XmlWriter, Object).)
Public method WriteStartObject(XmlDictionaryWriter, Object) Writes the opening XML element using an XmlDictionaryWriter. (Overrides XmlObjectSerializer.WriteStartObject(XmlDictionaryWriter, Object).)
Public method WriteStartObject(XmlWriter, Object) Writes the opening XML element using an XmlWriter. (Overrides XmlObjectSerializer.WriteStartObject(XmlWriter, Object).)
Top
Show:
© 2014 Microsoft. All rights reserved.