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

Fills the data set with records and schema.

Overload List

Fills the data set with records and schema using the DataSet given.

[Visual Basic] Overloads Overrides Public Function FillDataSet(DataSet) As Integer
[C#] public override int FillDataSet(DataSet);
[C++] public: override int FillDataSet(DataSet*);
[JScript] public override function FillDataSet(DataSet) : int;

Fills the data set with records and schema from a given source table.

[Visual Basic] Overloads Overridable Public Function FillDataSet(DataSet, String) As Integer
[C#] public virtual int FillDataSet(DataSet, String);
[C++] public: virtual int FillDataSet(DataSet*, String);
[JScript] public function FillDataSet(DataSet, String) : int;

Fills the data set with records from between the given bounds and schema from a given source table.

[Visual Basic] Overloads Overridable Public Function FillDataSet(DataSet, String, Integer, Integer) As Integer
[C#] public virtual int FillDataSet(DataSet, String, int, int);
[C++] public: virtual int FillDataSet(DataSet*, String, int, int);
[JScript] public function FillDataSet(DataSet, String, int, int) : int;

Example [Visual Basic]

The following example fills a previously created DataSet with the schema and only records 10 through 20 provided the source table exists.

Note   This example shows how to use one of the overloaded versions of FillDataSet. For other examples that may be available, see the individual overload topics.

[Visual Basic]

Function MyTwixtTenAndTwenty(myDataSet As DataSet, srcTable As String) As DataSet
    ' fill the data set
    FillDataSet myDataSet, srcTable, 10, 20
    ' 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