System.Data.DataSet.WriteXmlSchema Method

Writes the System.Data.DataSet structure as an XML schema to the specified System.IO.Stream object.

Syntax

public void WriteXmlSchema (System.IO.Stream stream)

Parameters

stream
A System.IO.Stream object used to write to a file.

Remarks

Use the DataSet.WriteXmlSchema(System.IO.Stream) method to write the schema for a System.Data.DataSet to an XML document. The schema includes table, relation, and constraint definitions. To write a schema to an XML document, use the DataSet.WriteXmlSchema(System.IO.Stream) method.

The XML schema is written using the XSD standard.

To write the data to an XML document, use the DataSet.WriteXml(System.IO.Stream) method.

Classes that derive from the System.IO.Stream class include System.IO.BufferedStream, System.IO.FileStream, System.IO.MemoryStream, and System.Net.Sockets.NetworkStream.

Requirements

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