XmlWriteMode 枚举

定义

指定如何从 DataSet 写入 XML 数据和关系架构。Specifies how to write XML data and a relational schema from a DataSet.

public enum class XmlWriteMode
public enum XmlWriteMode
type XmlWriteMode = 
Public Enum XmlWriteMode
继承
XmlWriteMode

字段

DiffGram 2

以 DiffGram 形式编写整个 DataSet,包括原始值和当前值。Writes the entire DataSet as a DiffGram, including original and current values. 若要生成只包含已更改的值的 DiffGram,请调用 GetChanges(),然后在返回的 WriteXml(Stream) 上作为 DiffGram 调用 DataSetTo generate a DiffGram containing only changed values, call GetChanges(), and then call WriteXml(Stream) as a DiffGram on the returned DataSet.

IgnoreSchema 1

以 XML 数据形式写入 DataSet 的当前内容,不带 XSD 架构。Writes the current contents of the DataSet as XML data, without an XSD schema. 如果无数据加载到 DataSet 中,则不写入任何内容。If no data is loaded into the DataSet, nothing is written.

WriteSchema 0

以 XML 数据形式写入 DataSet 的当前内容,以关系结构作为内联 XSD 架构。Writes the current contents of the DataSet as XML data with the relational structure as inline XSD schema. 如果 DataSet 只有架构而无数据,那么只写入内联架构。If the DataSet has only a schema with no data, only the inline schema is written. 如果 DataSet 没有当前架构,则不写入任何内容。If the DataSet does not have a current schema, nothing is written.

注解

设置WriteMode WriteXml方法的参数时, 请使用此枚举的成员。Use the members of this enumeration when setting the WriteMode parameter of the WriteXml method.

适用于