DataTable.WriteXmlSchema Method

Writes the current data structure of the DataTable as an XML schema.

Name Description
DataTable.WriteXmlSchema (Stream) Writes the current data structure of the DataTable as an XML schema to the specified stream.

Supported by the .NET Compact Framework.

DataTable.WriteXmlSchema (String) Writes the current data structure of the DataTable as an XML schema to the specified file.

Supported by the .NET Compact Framework.

DataTable.WriteXmlSchema (TextWriter) Writes the current data structure of the DataTable as an XML schema using the specified TextWriter.

Supported by the .NET Compact Framework.

DataTable.WriteXmlSchema (XmlWriter) Writes the current data structure of the DataTable as an XML schema using the specified XmlWriter.

Supported by the .NET Compact Framework.

DataTable.WriteXmlSchema (Stream, Boolean) Writes the current data structure of the DataTable as an XML schema to the specified stream. To save the schema for the table and all its descendants, set the writeHierarchy parameter to true.

Supported by the .NET Compact Framework.

DataTable.WriteXmlSchema (String, Boolean) Writes the current data structure of the DataTable as an XML schema to the specified file. To save the schema for the table and all its descendants, set the writeHierarchy parameter to true.

Supported by the .NET Compact Framework.

DataTable.WriteXmlSchema (TextWriter, Boolean) Writes the current data structure of the DataTable as an XML schema using the specified TextWriter. To save the schema for the table and all its descendants, set the writeHierarchy parameter to true.

Supported by the .NET Compact Framework.

DataTable.WriteXmlSchema (XmlWriter, Boolean) Writes the current data structure of the DataTable as an XML schema using the specified XmlWriter. To save the schema for the table and all its descendants, set the writeHierarchy parameter to true.

Supported by the .NET Compact Framework.

Use the WriteXmlSchema method to write the schema for a DataTable to an XML document. The schema includes table, relation, and constraint definitions.

The XML schema is written using the XSD standard.

To write the data to an XML document, use the WriteXml method.

Community Additions

ADD
Show: