System.Xml [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00] 1.0.5000.0 2.0.0.0 4.0.0.0 To be added System.Object

The class enables an to override the default way of serializing a set of objects. Overriding serialization in this way has two uses: first, you can control and augment the serialization of objects found in a DLL, even if you do not have access to the source; second, you can create one set of serializable classes, but serialize the objects in multiple ways. For example, instead of serializing members of a class instance as XML elements, you can serialize them as XML attributes, resulting in a more efficient document to transport.

After you create a , you create an using the method of the class. Pass the resulting object as an argument to the constructor. The resulting uses the data contained by the to override attributes that control how objects are serialized. To accomplish this, the contains a collection of the object types that are overridden, as well as a associated with each overridden object type. Each contains an appropriate set of attribute objects that control how each field, property, or class is serialized.

The process for creating and using a is as follows:

Create a .

Create an attribute object that is appropriate to the object being overridden. For example, to override a field or property, create a , using the new, derived type. You can optionally assign a new that overrides the base class's attribute name or namespace.

Add the attribute object to the appropriate property or collection. For example, you would set the property of the object to the and specify the member name that is being overridden.

Create a .

Add the to the using the method. If the object being overridden is a , you need only specify the type of the overridden object. But if you are overriding a field or property, you must also specify the name of the overridden member.

Create an using the method of the class.

When constructing the , pass the to the constructor.

Use the resulting to serialize or deserialize the class objects.

Allows you to override attributes applied to properties, fields, and classes when you use an to serialize or deserialize an object as encoded SOAP.

- Constructor
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  To be added

  Initializes a new instance of the class.

- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` ``

  The contains a union of attribute objects that cause the to override its default serialization behavior for a set of objects. You choose the attribute objects to place in the , depending on the particular behaviors you want to override. For example, the serializes a class member as an XML element by default. If you want the member to be serialized as an XML attribute instead, you would create a , assign it to the property of a , and add the to the . Use the method to add the to the .

  Use this overload to add a that contains a . Because the overrides the serialization of a class, you need not specify a member of the class to override, only the type of the class.

  Adds a to a collection of objects. The parameter specifies an object to be overridden by the .

  The of the object that is overridden. A that represents the overriding attributes.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` ``

  The contains a union of attribute objects that cause the to override its default serialization behavior for a set of objects. You choose the attribute objects to place in the , depending on the particular behaviors you want to override. For example, the serializes a class member as an XML element by default. If you want the member to be serialized as a SOAP attribute instead, you would create a , assign it to the property of a , and add the to the . Use the method to add the to the .

  Use this method when the contains either a , , , or .

  Adds a to the collection of objects contained by the . The parameter specifies the object to be overridden by the . The parameter specifies the name of a member that is overridden.

  The of the object to override. The name of the member to override. A that represents the overriding attributes.
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Xml.Serialization.SoapAttributes `` To be added. To be added. To be added. To be added.
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Xml.Serialization.SoapAttributes `` `` To be added. To be added. To be added. To be added. To be added.