Share via


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

屬性值

元素的預設值。 預設值為 Null 參考。 選擇性。

備註

fixeddefault 屬性互為獨佔模式。 如果項目包含簡單型別,則此值必須是該型別的有效值。

適用於