System.Xml.Serialization.XmlAttributeAttribute.Namespace Property

Gets or sets the XML namespace of the XML attribute.

Syntax

public string Namespace { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The XmlAttributeAttribute.Namespace property conforms to the http://www.w3.org specification Namespaces in XML.

To create namespaces that are associated with prefixes, you must create an System.Xml.Serialization.XmlSerializerNamespaces object that contains the namespaces and prefixes used in the XML document. The namespace you set for each System.Xml.Serialization.XmlAttributeAttribute must match one of the namespaces in the System.Xml.Serialization.XmlSerializerNamespaces object. When the System.Xml.Serialization.XmlSerializer generates the XML code, it correctly prefixes each attribute name.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0