XmlSchemaElement.Block 属性   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置 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
	属性值
用于阻止类型派生的属性。 默认值为 XmlSchemaDerivationMethod.None。 可选。
注解
此属性可以包含以下值:
| 枚举 | 说明 | 
|---|---|
None | 
如果架构存在,请使用架构属性定义的 BlockDefault 派生限制。 | 
Empty | 
此元素的替换没有限制。 | 
Substitution | 
此元素不能由替换派生的类型替换。 | 
Extension | 
此元素不能由扩展派生的类型替换。 | 
Restriction | 
此元素不能替换为由 Restriction 派生的类型。 | 
All | 
#all. 无论派生方法如何,此元素都不能替换为任何类型。 | 
此属性不会阻止派生,但会阻止派生替换实例中的类型。 属性不支持 block 列表和联合值。