asp.net.ph

DataTable.Namespace Property

System.Data Namespace   DataTable Class


Sets or retrieves the namespace for the XML represenation of the data stored in the DataTable.

Syntax


Script DataTable.Namespace [ = strName ]

Property Value


strName String specifying the namespace of the DataTable.

The property is read only with no default value.

Exceptions


Exception Type Condition
ArgumentException Occurs when the namespace already has data.

Remarks

The Namespace property is used when reading and writing an XML document into the DataSet using the ReadXml, WriteXml, ReadXmlSchema, or WriteXmlSchema methods.

The namespace of an XML document is used to scope XML attributes and elements when read into a DataSet. For example, a DataSet contains a schema read from a document with the namespace "myCompany", and an attempt is made to read data ( with the ReadXml method ) from a document with the namespace "theirCompany". Any data that does not correspond to the existing schema will be ignored.

See Also

DataTable Members   Prefix Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph