This documentation is archived and is not being maintained.
MissingSchemaAction Enumeration
.NET Framework 1.1
Specifies the action to take when adding data to the DataSet and the required DataTable or DataColumn is missing.
[Visual Basic] <Serializable> Public Enum MissingSchemaAction [C#] [Serializable] public enum MissingSchemaAction [C++] [Serializable] __value public enum MissingSchemaAction [JScript] public Serializable enum MissingSchemaAction
Remarks
The MissingSchemaAction values are used whenever an action is taken that could change the schema of the DataSet.
Members
| Member name | Description |
|---|---|
| Add Supported by the .NET Compact Framework. | Adds the necessary columns to complete the schema. |
| AddWithKey Supported by the .NET Compact Framework. | 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.To function properly with the .NET Framework Data Provider for OLE DB, AddWithKey requires that the native OLE DB provider obtains necessary primary key information by setting the DBPROP_UNIQUEROWS property, and then determines which columns are primary key columns by examining DBCOLUMN_KEYCOLUMN in the IColumnsRowset. As an alternative, the user may explicitly set the primary key constraints on each DataTable. This ensures that incoming records that match existing records are updated instead of appended. When using AddWithKey, the .NET Framework Data Provider for SQL Server appends a FOR BROWSE clause to the statement being executed. The user should be aware of potential side effects, such as interference with the use of SET FMTONLY ON statements. See SQL Server Books Online for more information. |
| Error Supported by the .NET Compact Framework. | An InvalidOperationException is generated if the specified column mapping is missing. |
| Ignore Supported by the .NET Compact Framework. | Ignores the extra columns. |
Requirements
Namespace: System.Data
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
Assembly: System.Data (in System.Data.dll)
See Also
Show: