Fills the data set with records and schema using the DataSet given.
[Visual Basic] Overloads Overrides Public Function FillDataSet( _ ByVal dataSet As DataSet _ ) As Integer [C#] public override int FillDataSet( DataSet dataSet ); [C++] public: override int FillDataSet( DataSet* dataSet ); [JScript] public override function FillDataSet( dataSet : DataSet ) : int;
Exception Type | Condition |
---|---|
FillDataSetRequiresSourceTable | The source table was invalid. |
The following example shows how to fill a previously created DataSet with data and the schema.
[Visual Basic]
Function MyFillData(myDataSet As DataSet) As DataSet ' fill the data set FillDataSet myDataSet ' return the data set (or will this only return the schema?) MyFillData = myDataSet.Clone End Function
DBDataSetCommand Class | DBDataSetCommand Members | System.Data.Internal Namespace | DBDataSetCommand.FillDataSet Overload List