Export (0) Print
Expand All

XmlSchema.AttributeFormDefault Property

Gets or sets the form for attributes declared in the target namespace of the schema.

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

public XmlSchemaForm AttributeFormDefault { get; set; }

Property Value

Type: System.Xml.Schema.XmlSchemaForm
The XmlSchemaForm value that indicates if attributes from the target namespace are required to be qualified with the namespace prefix. The default is None.

The value must be one of the XmlSchemaForm values shown in the following table.

XmlSchemaForm Value

Description

None

The attribute form is not specified in schema.

Qualified

Attributes from the target namespace must be qualified with the namespace prefix.

Unqualified

Attributes from the target namespace are not required to be qualified with the namespace prefix.

This value is the global default for all attributes declared in the target namespace. Individual attributes can override this setting for the local scope using the form attribute.

.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:
© 2015 Microsoft