System.Xml.Serialization.SoapAttributes.SoapDefaultValue Property

Gets or sets the default value of an XML element or attribute.

Syntax

public object SoapDefaultValue { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The default value of a member can be set by applying a System.ComponentModel.DefaultValueAttribute attribute to the member. If the member is being serialized as an encoded SOAP message, you can change the default value by creating a new System.ComponentModel.DefaultValueAttribute, setting its System.ComponentModel.DefaultValueAttribute.Value property, and setting the SoapAttributes.SoapDefaultValue property to the object. Add the System.Xml.Serialization.SoapAttributes to a System.Xml.Serialization.SoapAttributeOverrides. For more details, 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