System.Data.XmlWriteMode Enumeration

Specifies how to write XML data and a relational schema from a System.Data.DataSet.

Syntax

public enum XmlWriteMode

Remarks

Use the members of this enumeration when setting the WriteMode parameter of the DataSet.WriteXml(System.IO.Stream) method.

Members

Member NameDescription
DiffGram

Writes the entire System.Data.DataSet as a DiffGram, including original and current values. To generate a DiffGram containing only changed values, call DataSet.GetChanges, and then call DataSet.WriteXml(System.IO.Stream) as a DiffGram on the returned System.Data.DataSet.

IgnoreSchema

Writes the current contents of the System.Data.DataSet as XML data, without an XSD schema. If no data is loaded into the System.Data.DataSet, nothing is written.

WriteSchema

Writes the current contents of the System.Data.DataSet as XML data with the relational structure as inline XSD schema. If the System.Data.DataSet has only a schema with no data, only the inline schema is written. If the System.Data.DataSet does not have a current schema, nothing is written.

Requirements

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