Прочетете на английски Редактиране

Споделяне чрез


XmlSchemaType.Final Property

Definition

Gets or sets the final attribute of the type derivation that indicates if further derivations are allowed.

C#
public System.Xml.Schema.XmlSchemaDerivationMethod Final { get; set; }

Property Value

One of the valid XmlSchemaDerivationMethod values. The default is None.

Remarks

The following table shows the values that this property can contain for simple type.

XmlSchemaDerivationMethod value Description
Empty Overrides the schema blockDefault setting allowing any derivations by restriction, extension, or substitution to take place.
None No derivation method is specified. This is the default. Derivation rules are taken from the schema blockDefault setting.
Substitution Cannot be replaced by a type derived by Substitution.
Extension Cannot be replaced by a type derived by Extension.
Restriction Cannot be replaced by a type derived by Restriction.
All #all. Cannot be replaced by a type derived by any derivation method.

The following table shows the values that this property can contain for complex type.

XmlSchemaDerivationMethod value Description
Empty Overrides the schema blockDefault setting allowing any derivations by restriction, extension, or substitution to take place.
None No derivation method is specified. This is the default. Derivation rules are taken from the schema blockDefault setting.
Substitution Cannot be replaced by a type derived by Substitution.
Extension Cannot be replaced by a type derived by Extension.
Restriction Cannot be replaced by a type derived by Restriction.
All #all. Cannot be replaced by a type derived by any derivation method.

Applies to

Продукт Версии
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1