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.FillDataSetSchema

Fills the data set with the schema.

Overload List

Fills the data set with the schema based upon the chosen SchemaType and a given source table.

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

Fills the data set with the schema based upon the chosen SchemaType.

[Visual Basic] Overloads Overrides Public Function FillDataSetSchema(DataSet, SchemaType) As DataTable ()
[C#] public override DataTable[] FillDataSetSchema(DataSet, SchemaType);
[C++] public: override DataTable* FillDataSetSchema(DataSet*, SchemaType) [];
[JScript] public override function FillDataSetSchema(DataSet, SchemaType) : DataTable[];

Example [Visual Basic]

The following example fills a DataSet with the schema only, while filling a DataTable with records.

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

[Visual Basic]

Public Sub MyFillDataTableAndSet(myDataTable   As DataTable, _
         myDataSet     As DataSet, _
         myDataSetComm As ADODataSetCommand)
   ' Create a MessageBox to show the contents of myDataTable in
   Dim myMsgBox As MessageBox
   ' Populate myDataTable with records and myDataSet with schema
   myDataTable = myDataSetComm.FillDataSetSchema myDataSet, _
       SchemaType.Mapped
   ' Display the contents of myDataTable
   myMsgBox myDataTable.ToString
End Sub

See Also

DBDataSetCommand Class | DBDataSetCommand Members | System.Data.Internal Namespace