System.Xml.Schema.XmlSchemaAttribute.DefaultValue Property

Gets or sets the default value for the attribute.

Syntax

[System.ComponentModel.DefaultValue(null)]
[System.Xml.Serialization.XmlAttribute("default")]
public string DefaultValue { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

DefaultValue property indicates that the attribute is to appear unconditionally in the XML document, using the supplied value whenever the attribute is not present. By default, this property is set to null to indicate that no default value is supplied for the attribute. The fixed and default properties are mutually exclusive.

Optional.

The default is null.

Requirements

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