Name
XmlWriteMode
Synopsis
This enumeration is used to specify the type of XML output generated
by the DataSet.WriteXml( )
method.
IgnoreSchema
writes the data only. In this case,
you can use the DataSet.WriteXmlSchema( )
method
to create a separate schema file for the DataSet
.
If you choose WriteSchema
, an inline XSD schema
is written at the beginning of the file, followed by the XML data.
Finally, you can use DiffGram
to write the data
indicating which rows have been added, deleted, and modified (along
with the original value for changed rows). When a
DataSet
is serialized as part of a SOAP message
sent to or from a web service, the DiffGram format is used
automatically, and the DataSet
schema is prepended
to the data.
public enum XmlWriteMode { WriteSchema = 0, IgnoreSchema = 1, DiffGram = 2 }
Hierarchy
System.Object
→
System.ValueType
→
System.Enum(System.IComparable
, System.IFormattable
, System.IConvertible)
→
XmlWriteMode
Passed To
DataSet.WriteXml( )
Get ADO.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.