Export (0) Print
Expand All

XmlSchema.FinalDefault Property

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.

Namespace:  System.Xml.Schema
Assembly:  System.Xml (in System.Xml.dll)

public XmlSchemaDerivationMethod FinalDefault { get; set; }

Property Value

Type: System.Xml.Schema.XmlSchemaDerivationMethod
An XmlSchemaDerivationMethod value representing the different methods for preventing derivation. The default value is XmlSchemaDerivationMethod.None.

The final attribute prevents the specified type of derivation of an element or complex type. This value can contain #all or a list that is a subset of extension or restriction.

The 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

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. By default, elements in this schema cannot be derived by any method.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft