XmlSchemaElement.DefaultValue Property

 

Gets or sets the default value of the element if its content is a simple type or content of the element is textOnly.

Namespace:   System.Xml.Schema
Assembly:  System.Xml (in System.Xml.dll)

public string DefaultValue { get; set; }

Property Value

Type: System.String

The default value for the element. The default is a null reference.

Optional.

The fixed and default attributes are mutually exclusive. If the element contains a simple type, this value must be a valid value of that type.

.NET Framework
Available since 1.1
Return to top
Show: