System.Data.DataSet.Namespace Property

Gets or sets the namespace of the System.Data.DataSet.

Syntax

[System.ComponentModel.DefaultValue("")]
public string Namespace { set; get; }

Value

The namespace of the DataSet.

Remarks

The DataSet.Namespace property is used when reading and writing an XML document into the System.Data.DataSet using the DataSet.ReadXml(System.Xml.XmlReader), DataSet.WriteXml(System.IO.Stream), DataSet.ReadXmlSchema(System.Xml.XmlReader), or DataSet.WriteXmlSchema(System.IO.Stream) methods.

The namespace of an XML document is used to scope XML attributes and elements when read into a System.Data.DataSet. For example, if a System.Data.DataSet contains a schema that was read from a document with the namespace "myCompany," and an attempt is made to read data only from a document with a different namespace, any data that does not correspond to the existing schema is ignored.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0