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 enables the 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 an object, you pass it 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 an object associated with each overridden object type. The object itself contains an appropriate set of attribute objects that control how each field, property, or class is serialized.

The process for creating and using an object is as follows:

Create an object.

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

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

Create an object.

Using the method, add the object to the object. If the object being overridden is an or , you need only to 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.

When constructing the , pass the to the constructor.

Use the resulting to serialize or deserialize the derived class objects.

Allows you to override property, field, and class attributes when you use the to serialize or deserialize an object.

- 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 object 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 object, 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 XM attribute instead, you would create an , assign it to the property of an , and add the object to the object.

  Use this overload to override an or .

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

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

  The object 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 object, 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 an , assign it to the property of an , and add the object to the object.

  Use this method when attempting to override an , , , , or .

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

  The of the object to override. The name of the member to override. An object that represents the overriding attributes.
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Xml.Serialization.XmlAttributes `` 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.XmlAttributes `` `` To be added. To be added. To be added. To be added. To be added.