Mono Class Library: System.Data.DataSet Overview | Members

System.Data.DataSet.WriteXml Method

Writes the current DataSet data to the specified stream.

public void WriteXml (System.IO.Stream stream)

Parameters

stream
Stream object to write the data to.

Remarks

This method makes it possible to write the DataSet data and/or its schema into an XML document. To write both the schema and the data use one of the overloaded WriteXml versions which take the System.Data.WriteXmlMode parameter and set it to WriteSchema. To write only the DataSet schema use the DataSet.WriteXmlSchema method.

Requirements

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