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!

Creating a DataSet Programmatically

The dataset provides two basic constructors:

public DataSet()
public DataSet(string DataSetName) 

The first constructs an empty DataSet; the second constructs the DataSet with the specified name.

The following example constructs an instance of a DataSet:

[VB]
Dim workDataSet as DataSet
Set workDataSet As New DataSet() ' Empty DataSet.
' Or
Set workDataSet As New DataSet("CustomerOrders")
[C#]
DataSet workDataSet = new DataSet(); // Empty DataSet.
// Or
DataSet workDataSet = new DataSet("CustomerOrders");