Configures the schema of a System.Data.DataTable to match the schema in the data source.
Visual Basic
Overloads Public Function FillSchema( _
ByVal dataTable As DataTable, _
ByVal schemaType As SchemaType _
) As DataTable
C#
public DataTable FillSchema(
DataTable dataTable,
SchemaType schemaType
);
dataTable A System.Data.DataTable to fill with the schema.
schemaType One of the System.Data.SchemaType values that specify how to insert the schema.
A reference to the System.Data.DataTable object that contains the schema.
For more information, see DbDataAdapter.FillSchema.
System.ArgumentNullException - The dataTable parameter is invalid.
InvalidOperationException - The ULDataAdapter.SelectCommand is invalid.