System.Data.XmlReadMode.DiffGram Field

Reads a DiffGram, applying changes from the DiffGram to the System.Data.DataSet. The semantics are identical to those of a DataSet.Merge(DataSet) operation. As with the DataSet.Merge(DataSet) operation, DataRow.RowState values are preserved. Input to DataSet.ReadXml(System.Xml.XmlReader) with DiffGrams should only be obtained using the output from DataSet.WriteXml(System.IO.Stream) as a DiffGram.

Syntax

XmlReadMode DiffGram

Remarks

The target System.Data.DataSet must have the same schema as the System.Data.DataSet on which DataSet.WriteXml(System.IO.Stream) as DiffGram is called. Otherwise the DiffGram merge operation fails, and an exception is thrown.

Requirements

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