FillSchema(DataTable, SchemaType) Method
Syntax:
public DataTable FillSchema(DataTable dataTable, SchemaType schemaType)
Description:
Configures the schema of the specified DataTable from the database based on the specified SchemaType.
Parameters:
dataTable
Type: System.Data.DataTable
The DataTable to fill with schema information from the database.
schemaType
Type: System.Data.SchemaType
One of the SchemaType values to specify how to insert the schema information.
Return Value:
Type: System.Data.DataTable
The supplied DataTable that was filled with schema information.
Reference:
For more information, reference MSDN documentation for: System.Data.Common.DbDataAdapter.FillSchema(DataSet, SchemaType)