DataContractSerializer Members

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.

  NameDescription
Public method DataContractSerializer Overloaded. Initializes a new instance of the DataContractSerializer class.
Top

  NameDescription
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method 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 GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method IsStartObject Overloaded. Determines whether the reader is positioned on an object that can be deserialized.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ReadObject Overloaded. Reads the XML stream and returns the deserialized object.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method WriteEndObject Overloaded. Writes the closing XML element using the specified writer.
Public method WriteObject Overloaded. Writes all the object data (starting XML element, content, and closing element) to an XML document or stream.
Public method WriteObjectContent Overloaded. Writes the XML content without the wrapping element using the specified writer.
Public method WriteStartObject Overloaded. Writes the opening XML element using the specified writer.
Top

  NameDescription
Public property DataContractSurrogate Gets a surrogate type that can extend the serialization or deserialization process.
Public property 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.
Public property KnownTypes Gets a collection of types that may be present in the object graph serialized using this instance of the DataContractSerializer.
Public property MaxItemsInObjectGraph Gets the maximum number of items in an object graph to serialize or deserialize.
Public property PreserveObjectReferences Gets a value that specifies whether to use non-standard XML constructs to preserve object reference data.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft