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.Attribute System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Method | System.AttributeTargets.Interface | System.AttributeTargets.All, AllowMultiple=true)

The class belongs to a family of attributes that controls how the serializes, or deserializes, an object as encoded SOAP XML. The resulting XML conforms to section 5 of the World Wide Web Consortium (www.w3.org) document, "Simple Object Access Protocol (SOAP) 1.1". For a complete list of similar attributes, see [<topic://cpconAttributesThatControlSOAPEncodedSerialization>].

To serialize an object as an encoded SOAP message, you must construct the using an created with the method of the class.

When applying the , specify the of the derived class. When the serializes objects that include both the base and the derived classes, it can then recognize both object types.

You can use the to include derived classes in service description documents that are written in the Web Services Description Language (WSDL). For example, if a method returns an , apply the to the method and specify the actual types that should be returned.

For more information about WSDL, see World Wide Web Consortium (www.w3.org) specification, "Web Services Description Language (WSDL) 1.1".

For more information about using attributes, see [<topic://cpconExtendingMetadataUsingAttributes>].

Allows the to recognize a type when it serializes or deserializes an object as encoded SOAP XML.

- Constructor
  1.0.5000.0
  2.0.0.0
  4.0.0.0

  Apply multiple instances of the to a field or property that returns either an array of objects, an that contains a collection of objects, or an object that can return multiple types. Set the property for each type that you want the field or property to contain.

  Initializes a new instance of the class using the specified type.

  The type of the object to include.
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Type To be added: an object of type 'System.Type'

  Apply multiple instances of the to a field or property that returns either an array of objects, an that contains a collection of objects, or an object that can return multiple types. Set the property for each type that you want the field or property to contain.

  Gets or sets the type of the object to use when serializing or deserializing an object.