Writes the System.Data.DataSet structure as an XML schema to the specified System.IO.Stream object.
- stream
- A System.IO.Stream object used to write to a file.
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.