DataTableMapping.GetDataTableBySchemaAction Method (DataSet, MissingSchemaAction)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the current DataTable for the specified DataSet using the specified MissingSchemaAction value.

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

member GetDataTableBySchemaAction : 
        dataSet:DataSet *
        schemaAction:MissingSchemaAction -> DataTable

Parameters

dataSet
Type: System.Data.DataSet

The DataSet from which to get the DataTable.

schemaAction
Type: System.Data.MissingSchemaAction

One of the MissingSchemaAction values.

Return Value

Type: System.Data.DataTable

A data table.

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: