XmlSchema.FinalDefault 属性

定义

获取或设置 finalDefault 特性,该特性设置架构目标命名空间中的元素和复杂类型的 final 特性的默认值。Gets or sets the finalDefault attribute which sets the default value of the final attribute on elements and complex types in the target namespace of the schema.

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 值,它表示阻止派生的不同方法。An XmlSchemaDerivationMethod value representing the different methods for preventing derivation. 默认值是 XmlSchemaDerivationMethod.NoneThe default value is XmlSchemaDerivationMethod.None.

注解

final特性可防止指定类型的元素或复杂类型的派生。The final attribute prevents the specified type of derivation of an element or complex type. 此值可以包含 #all 或包含扩展或限制子集的列表。This value can contain #all or a list that is a subset of extension or restriction.

下表列出了的可能值 XmlSchemaDerivationMethodThe following table lists the possible values of XmlSchemaDerivationMethod.

Value 说明Description
None 默认情况下,架构中的类型派生没有限制。By default, there are no restrictions on type derivations in the schema.
Empty 重写默认派生方法,并允许在架构中进行任何类型派生。Overrides the default derivation method and allows any type derivations in the schema.
Extension 默认情况下,该架构中的元素不能通过扩展派生。By default, elements in this schema cannot be derived by Extension. 仅适用于元素和复杂类型元素。Applies only to element and complex type elements.
Restriction 默认情况下,此架构中的元素不能通过限制派生。By default, elements in this schema cannot be derived by Restriction.
Union 默认情况下,此架构中的元素不能通过 Union 派生。By default, elements in this schema cannot be derived by Union. 仅适用于简单类型。Applies only to simple types.
List 默认情况下,此架构中的元素不能由列表派生。By default, elements in this schema cannot be derived by List. 仅适用于简单类型。Applies only to simple types.
All #all.#all. 默认情况下,该架构中的元素不能通过任何方法派生。By default, elements in this schema cannot be derived by any method.

适用于