Export (0) Print
Expand All

XmlSchema.FinalDefault Property

Gets or sets the default value of the final attribute on element and complex type elements in the target namespace of this schema. The final attribute prevents the specified type of derivation of an element or complex type. The type of derivation.

[Visual Basic]
Public Property FinalDefault As XmlSchemaDerivationMethod
[C#]
public XmlSchemaDerivationMethod FinalDefault {get; set;}
[C++]
public: __property XmlSchemaDerivationMethod get_FinalDefault();
public: __property void set_FinalDefault(XmlSchemaDerivationMethod);
[JScript]
public function get FinalDefault() : XmlSchemaDerivationMethod;
public function set FinalDefault(XmlSchemaDerivationMethod);

Property Value

Attribute for FinalDefault. The default value is XmlSchemaDerivationMethod.None.

Optional.

Remarks

This value can contain #all or a list that is a subset of extension or restriction.

Enum Description
None By default, there are no restrictions on type derivations in the schema.
Empty By default, there are no restrictions on 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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

XmlSchema Class | XmlSchema Members | System.Xml.Schema Namespace

Show:
© 2014 Microsoft