NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DBDataSetCommand.FillDataSet (DataSet)

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;

Parameters

dataSet
A DataSet to fill with records and schema.

Exceptions

Exception Type Condition
FillDataSetRequiresSourceTable The source table was invalid.

Example [Visual Basic]

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

See Also

DBDataSetCommand Class | DBDataSetCommand Members | System.Data.Internal Namespace | DBDataSetCommand.FillDataSet Overload List