DataTableMapping::GetDataTableBySchemaAction Method (DataSet^, MissingSchemaAction)
.NET Framework (current version)
Gets the current DataTable for the specified DataSet using the specified MissingSchemaAction value.
Assembly: System.Data (in System.Data.dll)
public:
DataTable^ GetDataTableBySchemaAction(
DataSet^ dataSet,
MissingSchemaAction schemaAction
)
Parameters
- dataSet
- Type: System.Data::DataSet^
- schemaAction
-
Type:
System.Data::MissingSchemaAction
One of the MissingSchemaAction values.
If the DataTable does not exist, the specified MissingSchemaAction is taken.
The following example gets the DataTable for a given DataSet. If there is no current table for the DataSet, null is returned. This example assumes that a DataSet and a DataTableMappingCollection collection have been created.
.NET Framework
Available since 1.1
Available since 1.1
Show: