MissingSchemaAction Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the action to take when adding data to the DataSet and the required DataTable or DataColumn is missing.
public enum class MissingSchemaAction
public enum MissingSchemaAction
type MissingSchemaAction =
Public Enum MissingSchemaAction
- Inheritance
Name | Value | Description |
---|---|---|
Add | 1 | Adds the necessary columns to complete the schema. |
Ignore | 2 | Ignores the extra columns. |
Error | 3 | An InvalidOperationException is generated if the specified column mapping is missing. |
AddWithKey | 4 | Adds the necessary columns and primary key information to complete the schema. For more information about how primary key information is added to a DataTable, see FillSchema(DataSet, SchemaType). To function properly with the .NET Framework Data Provider for OLE DB, |
The MissingSchemaAction values are used whenever an action is taken that could change the schema of the DataSet.
Product | Versions |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: