Gets or sets an object that specifies how the XmlSerializer serializes a SOAP enumeration.
Assembly: System.Xml (in System.Xml.dll)
The following example serializes two classes named Food and FoodType. The FoodType class contains two enumerations that are overridden, and for each enumeration, the example creates a SoapEnumAttribute that it assigns to the property of a SoapAttributes. The example then adds the SoapAttributes to a SoapAttributeOverrides, which is used to create an XmlSerializer.