XmlSchemaElement.DefaultValue 屬性

定義

若元素內容為簡單型態,則 textOnly取得或設定該元素的預設值。

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

屬性值

元素的預設值。 預設是空參考。 Optional.

備註

fixed屬性default與 是互斥的。 若元素包含簡單型別,該值必須是該型別的有效值。

適用於