语言

XmlSchemaComplexType.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

属性值

该 block 特性可防止在指定派生类型中使用复杂类型。 默认值为 XmlSchemaDerivationMethod.None。 Optional.

注解

指示派生的类型。

此属性可以包含以下值:

Enum Description
None 使用架构的属性定义的 BlockDefault 派生限制(如果存在)。
Extension 此元素不能替换为由 Extension 派生的类型。
Restriction 此元素不能替换为由 Restriction 派生的类型。
All #all。 无论派生方法如何,此元素都不能替换为任何类型。

此属性不支持 /> 和派生方法。

适用于