XmlSchema.FinalDefault 屬性

定義

取得或設定 finalDefault 屬性,該屬性設定結構描述之目標命名空間中項目和複雜型別上 final 屬性的預設值。

public:
 property System::Xml::Schema::XmlSchemaDerivationMethod FinalDefault { System::Xml::Schema::XmlSchemaDerivationMethod get(); void set(System::Xml::Schema::XmlSchemaDerivationMethod value); };
public System.Xml.Schema.XmlSchemaDerivationMethod FinalDefault { get; set; }
member this.FinalDefault : System.Xml.Schema.XmlSchemaDerivationMethod with get, set
Public Property FinalDefault As XmlSchemaDerivationMethod

屬性值

XmlSchemaDerivationMethod

XmlSchemaDerivationMethod 值,表示防止衍生的各種方法。 預設值是 XmlSchemaDerivationMethod.None

備註

屬性 final 會防止指定類型的專案或複雜型別的衍生。 這個值可以包含 #all 或清單,該清單是延伸模組或限制的子集。

下表列出 的可能值 XmlSchemaDerivationMethod

描述
None 根據預設,架構中的型別衍生沒有任何限制。
Empty 覆寫預設衍生方法,並允許架構中的任何類型衍生。
Extension 根據預設,此架構中的專案無法由 Extension 衍生。 僅適用于專案和複雜型別專案。
Restriction 根據預設,此架構中的元素不可由 Restriction 衍生。
Union 根據預設,這個架構中的專案不可由 Union 衍生。 僅適用于簡單類型。
List 根據預設,此架構中的專案無法由 List 衍生。 僅適用于簡單類型。
All #all. 依照預設,這個結構描述中的項目不能由任何方法衍生。

適用於