Fills the DataSet with only the schema based upon the chosen SchemaType.
[Visual Basic] Function FillDataSetSchema( _ ByVal dataSet As DataSet, _ ByVal schemaType As SchemaType _ ) As DataTable () [C#] DataTable[] FillDataSetSchema( DataSet dataSet, SchemaType schemaType ); [C++] DataTable* FillDataSetSchema( DataSet* dataSet, SchemaType schemaType ) [] = 0; [JScript] function FillDataSetSchema( dataSet : DataSet, schemaType : SchemaType ) : DataTable[];
An array of DataTable objects that contain data returned from the data source.
Exception Type | Condition |
---|---|
FillDataSetSchemaRequiresSourceTable(System.String) | A source table could not be found to get the schema from. |
TableMappings is required to be mapped for this method to operate. The default source table is named "Table".
IDataSetCommand Interface | IDataSetCommand Members | System.Data Namespace