This documentation is archived and is not being maintained.

XmlSchema.AttributeFormDefault Property

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

[Visual Basic]
Public Property AttributeFormDefault As XmlSchemaForm
public XmlSchemaForm AttributeFormDefault {get; set;}
public: __property XmlSchemaForm get_AttributeFormDefault();
public: __property void set_AttributeFormDefault(XmlSchemaForm);
public function get AttributeFormDefault() : XmlSchemaForm;
public function set AttributeFormDefault(XmlSchemaForm);

Property Value

The XmlSchemaForm value that indicates if attributes from the targetNamespace are required to be qualified with the namespace. Default value is Unqualified.



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

Enum Description
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 targetNamespace. Individual attributes can override this setting for the local scope using the form attribute.


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