Share via


XmlSchemaElement.BlockResolved 属性

定义

获取 Block 属性的编译后值。

public:
 property System::Xml::Schema::XmlSchemaDerivationMethod BlockResolved { System::Xml::Schema::XmlSchemaDerivationMethod get(); };
public System.Xml.Schema.XmlSchemaDerivationMethod BlockResolved { get; }
member this.BlockResolved : System.Xml.Schema.XmlSchemaDerivationMethod
Public ReadOnly Property BlockResolved As XmlSchemaDerivationMethod

属性值

Block 属性的编译后值。 默认为 BlockDefault 元素中的 schema 值。

注解

该值指示在实例文档中使用 xsi:type 时如何强制类型。 例如,如果值受到限制,则只能使用特定的定义类型,而不能使用受特定定义类型的限制派生的类型。

此属性可以包含下表中显示的值。 默认值为 None。 此属性上不允许使用列表和联合派生方法。

枚举 说明
Empty 此元素的替换没有限制。
Substitution 此元素不能替换为由 Replace 派生的类型。
Extension 此元素不能替换为由 Extension 派生的类型。
Restriction 此元素不能替换为由 Restriction 派生的类型。
All #all. 无论派生方法如何,此元素都不能替换为任何类型。

适用于