XmlSchemaAttribute.DefaultValue Property

Definition

Gets or sets the default value for the attribute.

public:
 property System::String ^ DefaultValue { System::String ^ get(); void set(System::String ^ value); };
public string? DefaultValue { get; set; }
public string DefaultValue { get; set; }
member this.DefaultValue : string with get, set
Public Property DefaultValue As String

Property Value

The default value for the attribute. The default is a null reference. Optional.

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.

Applies to