XmlWriteMode XmlWriteMode XmlWriteMode XmlWriteMode Enum

定義

指定如何從 DataSet 寫入 XML 資料和關聯式結構描述 (Schema)。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
繼承

欄位

DiffGram DiffGram DiffGram DiffGram 2

將整個 DataSet 寫入為 DiffGram (包括原始值和目前值)。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 IgnoreSchema IgnoreSchema IgnoreSchema 1

DataSet 的目前內容寫入為 XML 資料,不包括 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 WriteSchema WriteSchema WriteSchema 0

DataSet 的目前內容寫入為XML 資料,該資料具有做為內嵌 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.

適用於