Export (0) Print
Expand All
Expand Minimize

MissingSchemaAction Enumeration

Specifies the action to take when adding data to the DataSet and the required DataTable or DataColumn is missing.

Namespace:  System.Data
Assembly:  System.Data (in System.Data.dll)

public enum MissingSchemaAction

Member nameDescription
Supported by the XNA FrameworkAddAdds the necessary columns to complete the schema.
Supported by the XNA FrameworkAddWithKeyAdds 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.
Supported by the XNA FrameworkErrorAn InvalidOperationException is generated if the specified column mapping is missing.
Supported by the XNA FrameworkIgnoreIgnores the extra columns.

The MissingSchemaAction values are used whenever an action is taken that could change the schema of the DataSet.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft