This documentation is archived and is not being maintained.
Serializes and deserializes an instance of a type into an XML stream or document using a supplied data contract. This class cannot be inherited.
The DataContractSerializer type exposes the following members.
|Equals||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the type of the current instance. (Inherited from Object.)|
|IsStartObject||Overloaded. Determines whether the reader is positioned on an object that can be deserialized.|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ReadObject||Overloaded. Reads the XML stream and returns the deserialized object.|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|WriteEndObject||Overloaded. Writes the closing XML element using the specified writer.|
|WriteObject||Overloaded. Writes all the object data (starting XML element, content, and closing element) to an XML document or stream.|
|WriteObjectContent||Overloaded. Writes the XML content without the wrapping element using the specified writer.|
|WriteStartObject||Overloaded. Writes the opening XML element using the specified writer.|
|DataContractSurrogate||Gets a surrogate type that can extend the serialization or deserialization process.|
|IgnoreExtensionDataObject||Gets a value that specifies whether to ignore data supplied by an extension of the class when the class is being serialized or deserialized.|
|KnownTypes||Gets a collection of types that may be present in the object graph serialized using this instance of the DataContractSerializer.|
|MaxItemsInObjectGraph||Gets the maximum number of items in an object graph to serialize or deserialize.|
|PreserveObjectReferences||Gets a value that specifies whether to use non-standard XML constructs to preserve object reference data.|