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!

IDataSetCommand.FillDataSetSchema

Fills the DataSet with only the schema based upon the chosen SchemaType.

[Visual Basic]
Function FillDataSetSchema( _
   ByVal dataSet As DataSet, _
   ByVal schemaType As SchemaType _
) As DataTable ()
[C#]
DataTable[] FillDataSetSchema(
   DataSet dataSet,
   SchemaType schemaType
);
[C++]
DataTable* FillDataSetSchema(
   DataSet* dataSet,
   SchemaType schemaType
) [] = 0;
[JScript]
function FillDataSetSchema(
   dataSet : DataSet,
   schemaType : SchemaType
) : DataTable[];

Parameters

dataSet
The DataSet to be filled with the schema from the data source.
schemaType
One of the SchemaType values.

Return Value

An array of DataTable objects that contain data returned from the data source.

Exceptions

Exception Type Condition
FillDataSetSchemaRequiresSourceTable(System.String) A source table could not be found to get the schema from.

Remarks

TableMappings is required to be mapped for this method to operate. The default source table is named "Table".

See Also

IDataSetCommand Interface | IDataSetCommand Members | System.Data Namespace