DataContractSerializer Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Serializes and deserializes an instance of a type into an XML stream or document using a supplied data contract.

Inheritance Hierarchy

System. . :: . .Object
  Ws.Services.Serialization..::..DataContractSerializer

Namespace:  Ws.Services.Serialization
Assembly:  MFWsStack (in MFWsStack.dll)

Syntax

'Declaration
Public MustInherit Class DataContractSerializer
public abstract class DataContractSerializer
public ref class DataContractSerializer abstract
[<AbstractClass>]
type DataContractSerializer =  class end
public abstract class DataContractSerializer

The DataContractSerializer type exposes the following members.

Constructors

  Name Description
Protected method DataContractSerializer(String, String) Initializes a new instance of the DataContractSerializer class with the specified root element and namespace.
Protected method DataContractSerializer(String, String, String) Initializes a new instance of the DataContractSerializer class with the specified root element, root namespace and local namespace.

Top

Methods

  Name Description
Public method CreateNewBodyPart Builds a WsMtomBodyPart object.
Public method Equals(Object) 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 GetBodyPartContent Retrieves the content of a WsMtomBodyPart 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.)
Protected method IsAttribute Determines whether the specified attribute exists at the current XML reader position.
Protected method IsChildStartElement Determines whether the specified child element is at the current reader position.
Protected method IsParentStartElement Determines whether the object's root element is at the current reader position.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method ReadAnyAttribute Fills an array of XmlAttribute objects with any attribute that is not required and passes a specified set of namespace validation rules.
Protected method ReadAnyElement Starting at the current reader position, builds an array of XmlElement objects up to the end tag of the enclosing element or until the namespace validation rules are not matched.
Public method ReadObject Reads the XML stream from a reader and returns the deserialized object.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method WriteAnyAttribute Adds the collection of XmlAttributes to the current element.
Protected method WriteAnyElement Writes an array of elements at the current position in the document.
Protected method WriteAttribute Writes an attribute to the current element.
Protected method WriteChildElement Writes a child element to an XML stream.
Public method WriteObject Writes all the object data (starting XML element, content, and closing element) to an XML document or stream with an XML writer.
Protected method WriteParentElement Writes an object to the root element of an XML stream.

Top

Fields

  Name Description
Protected field _CompressByteArrays Contains a value that indicates whether to use compression.
Protected field _localNamespace Contains the local namespace.
Protected field _NamespaceIsDefined Contains a value that indicates whether the namespace is defined.
Protected field _prefix Contains the prefix.
Protected field _rootName Contains the name of the root element of a type.
Protected field _rootNamespace Holds the namespace of the root element of a type.
Public field BodyParts Contains a collection of objects.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Ws.Services.Serialization Namespace