FillSchema(DataSet, SchemaType) Method

Syntax:

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

Description:

Adds a DataTable named "Table" 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.

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)