XmlSchemaAttribute.DefaultValue Propriedade

Definição

Obtém ou define o valor padrão do atributo.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

Valor da propriedade

String

O valor padrão para o atributo.The default value for the attribute. O padrão é uma referência nula.The default is a null reference. Opcional.Optional.

Comentários

DefaultValue a propriedade indica que o atributo deve aparecer incondicionalmente no documento XML, usando o valor fornecido sempre que o atributo não estiver presente.DefaultValue property indicates that the attribute is to appear unconditionally in the XML document, using the supplied value whenever the attribute is not present. Por padrão, essa propriedade é definida como NULL para indicar que nenhum valor padrão é fornecido para o atributo.By default, this property is set to null to indicate that no default value is supplied for the attribute. As fixed default Propriedades e são mutuamente exclusivas.The fixed and default properties are mutually exclusive.

Opcional.Optional.

O padrão é nulo.The default is null.

Aplica-se a