Adds a System.Xml.Serialization.SoapAttributes to the collection of System.Xml.Serialization.SoapAttributes objects contained by the System.Xml.Serialization.SoapAttributeOverrides. The type parameter specifies the object to be overridden by the System.Xml.Serialization.SoapAttributes. The member parameter specifies the name of a member that is overridden.
- type
- The Type of the object to override.
- member
- The name of the member to override.
- attributes
- A System.Xml.Serialization.SoapAttributes that represents the overriding attributes.
The System.Xml.Serialization.SoapAttributes contains a union of attribute objects that cause the System.Xml.Serialization.XmlSerializer to override its default serialization behavior for a set of objects. You choose the attribute objects to place in the System.Xml.Serialization.SoapAttributes, depending on the particular behaviors you want to override. For example, the System.Xml.Serialization.XmlSerializer 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 System.Xml.Serialization.SoapAttributeAttribute, assign it to the SoapAttributes.SoapAttribute property of a System.Xml.Serialization.SoapAttributes, and add the System.Xml.Serialization.XmlAttributes to the System.Xml.Serialization.SoapAttributeOverrides. Use the SoapAttributeOverrides.Add(Type, SoapAttributes) method to add the System.Xml.Serialization.SoapAttributes to the System.Xml.Serialization.SoapAttributeOverrides.
Use this method when the System.Xml.Serialization.SoapAttributes contains either a System.Xml.Serialization.SoapAttributeAttribute, System.ComponentModel.DefaultValueAttribute System.Xml.Serialization.SoapElementAttribute, System.Xml.Serialization.SoapEnumAttribute, or System.Xml.Serialization.SoapIgnoreAttribute.