FillSchema(DataSet, SchemaType, String) Method

Syntax:

public DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, string sourceTable)

Description:

Adds a DataTable named sourceTable to the specified DataSet and configures the schema to match that in the database based on the specified SchemaType.

Parameters:

dataSet

Type: System.Data.DataSet

The DataSet to fill with records and, if necessary, schema.

schemaType

Type: System.Data.SchemaType

One of the SchemaType values to specify how to insert the schema information.

sourceTable

Type: System.String

The name of the DataTable to fill within the DataSet.

Return Value:

Type: System.Data.DataTable[]

A reference to the collection of DataTable objects that were added to the DataSet.

Reference:

For more information, reference MSDN documentation for: System.Data.Common.DbDataAdapter.FillSchema(DataSet, SchemaType)