System.Xml.Serialization.SoapAttributes Class

Represents a collection of attribute objects that control how the System.Xml.Serialization.XmlSerializer serializes and deserializes SOAP methods.

See Also: SoapAttributes Members

Syntax

public class SoapAttributes

Remarks

Creating a System.Xml.Serialization.SoapAttributes is part of a process that overrides the default way the System.Xml.Serialization.XmlSerializer serializes class instances. For example, suppose you want to serialize an object that is created from a DLL that has an inaccessible source. By using the System.Xml.Serialization.SoapAttributeOverrides class, you can augment or otherwise control how the object is serialized.

The members of the System.Xml.Serialization.SoapAttributes class correspond directly to a family of attribute classes that control serialization. For example, the SoapAttributes.SoapAttribute property must be set to a System.Xml.Serialization.SoapAttributeAttribute, which allows you to override serialization of a field or property by instructing the System.Xml.Serialization.XmlSerializer to serialize the property value as an encoded SOAP attribute. For a complete list of attributes that control encoded SOAP serialization, see [<topic://cpconAttributesThatControlSOAPEncodedSerialization>].

For more details about adding an instance of the System.Xml.Serialization.SoapAttributes class to an instance of the System.Xml.Serialization.SoapAttributeOverrides class, see the System.Xml.Serialization.SoapAttributeOverrides class overview.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0