XmlReadMode Enumeration
Specifies how to read XML data and a relational schema into a DataSet.
Assembly: System.Data (in System.Data.dll)
| Member name | Description | |
|---|---|---|
| Auto | Default. | |
| DiffGram | ||
| Fragment | Reads XML fragments, such as those generated by executing FOR XML queries, against an instance of SQL Server. When XmlReadMode is set to Fragment, the default namespace is read as the inline schema. | |
| IgnoreSchema | ||
| InferSchema | Ignores any inline schema, infers schema from the data and loads the data. If the DataSet already contains a schema, the current schema is extended by adding new tables or adding columns to existing tables. An exception is thrown if the inferred table already exists but with a different namespace, or if any of the inferred columns conflict with existing columns. | |
| InferTypedSchema | Ignores any inline schema, infers a strongly typed schema from the data, and loads the data. If the type cannot be inferred from the data, it is interpreted as string data. If the DataSet already contains a schema, the current schema is extended, either by adding new tables or by adding columns to existing tables. An exception is thrown if the inferred table already exists but with a different namespace, or if any of the inferred columns conflict with existing columns. | |
| ReadSchema |
Use the members of this enumeration when setting the ReadMode parameter of the ReadXml method.
Note |
|---|
Auto mode may be slower than setting XmlReadMode to an explicit option. |
Available since 1.1
