FillSchema Method

Adds DataTables to a DataSet and configures the schema to match the schema in the data source.

Syntax 1

DataTable[ ] FillSchema( DataSet dataSet, SchemaType schemaType )

Syntax 2

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

Syntax 3

DataTable FillSchema( DataTable dataTable, SchemaType schemaType )

Parameters

Return Value

For Syntax 1 and 2, the return value is a reference to a collection of DataTable objects that were added to the DataSet. For Syntax 3, the return value is a reference to a DataTable.

See .NET Framework help at http://msdn.microsoft.com/.

Related tasks
Obtaining AseDataAdapter Schema Information