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, String)

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

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

Parameters

dataSet
A DataSet to fill with records and schema.
srcTable
The name of the source table used for the table mappings.

Exceptions

Exception Type Condition
FillDataSetRequiresSourceTable The source table was invalid.

Remarks

Notes to Inheritors: When overriding FillDataSet in a derived class, be sure to call the base class's FillDataSet method.

Example [Visual Basic]

The following example shows how to fill a previously created DataSet with data and the schema when providing a source table.

[Visual Basic]

Function MyFillData(myDataSet As DataSet, sourceTable As String) As DataSet
    ' fill the data set
    FillDataSet myDataSet, sourceTable
    ' 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