XmlSchemaElement.Block 屬性

定義

取得或設定 Block 衍生。

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

屬性值

用於阻斷類型衍生的屬性 (Attribute)。 預設值為 XmlSchemaDerivationMethod.None。 選擇性。

備註

此屬性可以包含下列值:

例舉 描述
None 如果有,請使用架構的 屬性所 BlockDefault 定義的衍生限制。
Empty 取代這個專案沒有任何限制。
Substitution 這個元素無法由替代衍生的類型取代。
Extension 此元素無法由 Extension 衍生的類型取代。
Restriction 此元素無法由 Restriction 衍生的類型取代。
All #all. 不論衍生方法為何,這個元素都無法由任何類型取代。

這個屬性不會防止衍生,但會防止衍生取代 實例中的類型。 屬性不支援 block 清單和聯集值。

適用於