Adds a System.Data.DataTable named "Table" to a System.Data.DataSet and configures the schema to match the schema in the data source.
Visual Basic
Overloads Public Function FillSchema( _
ByVal dataSet As DataSet, _
ByVal schemaType As SchemaType, _
ByVal srcTable As String _
) As DataTable()
C#
public DataTable[] FillSchema(
DataSet dataSet,
SchemaType schemaType,
string srcTable
);
dataSet A System.Data.DataSet to fill with the schema.
schemaType One of the System.Data.SchemaType values that specify how to insert the schema.
srcTable The name of the source table to use for table mapping.
A reference to a collection of System.Data.DataTable objects that were added to the System.Data.DataSet.
For more information, see DbDataAdapter.FillSchema.
System.ArgumentNullException - The dataSet or srcTable parameter is invalid.
InvalidOperationException - The ULDataAdapter.SelectCommand is invalid or, the table mapping is missing and ULDataAdapter.MissingMappingAction is set to System.Data.MissingMappingAction.Error.