Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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 | |
|---|---|---|
![]() |
DataContractSerializer(String, String) | Initializes a new instance of the DataContractSerializer class with the specified root element and namespace. |
![]() |
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 | |
|---|---|---|
![]() |
CreateNewBodyPart | Builds a WsMtomBodyPart object. |
![]() |
Equals(Object) | 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.) |
![]() |
GetBodyPartContent | Retrieves the content of a WsMtomBodyPart 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.) |
![]() |
IsAttribute | Determines whether the specified attribute exists at the current XML reader position. |
![]() |
IsChildStartElement | Determines whether the specified child element is at the current reader position. |
![]() |
IsParentStartElement | Determines whether the object's root element is at the current reader position. |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
ReadAnyAttribute | Fills an array of XmlAttribute objects with any attribute that is not required and passes a specified set of namespace validation rules. |
![]() |
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. |
![]() |
ReadObject | Reads the XML stream from a reader and returns the deserialized object. |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() |
WriteAnyAttribute | Adds the collection of XmlAttributes to the current element. |
![]() |
WriteAnyElement | Writes an array of elements at the current position in the document. |
![]() |
WriteAttribute | Writes an attribute to the current element. |
![]() |
WriteChildElement | Writes a child element to an XML stream. |
![]() |
WriteObject | Writes all the object data (starting XML element, content, and closing element) to an XML document or stream with an XML writer. |
![]() |
WriteParentElement | Writes an object to the root element of an XML stream. |
Top
Fields
| Name | Description | |
|---|---|---|
![]() |
_CompressByteArrays | Contains a value that indicates whether to use compression. |
![]() |
_localNamespace | Contains the local namespace. |
![]() |
_NamespaceIsDefined | Contains a value that indicates whether the namespace is defined. |
![]() |
_prefix | Contains the prefix. |
![]() |
_rootName | Contains the name of the root element of a type. |
![]() |
_rootNamespace | Holds the namespace of the root element of a type. |
![]() |
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.
.gif)
.gif)
.gif)
.gif)