System.Data Namespace DataSet Class
Initializes a new instance of a DataSet class with the given name.
[ VB ]
Public Sub New ( _
ByVal dataSetName As String _
)
[ C# ]
public DataSet (
String dataSetName
);
[ C++ ]
public: DataSet (
String* dataSetName
);
[ JScript ]
public function DataSet (
dataSetName : String
);
- dataSetName
- The name of the DataSet.
A name for a DataSet is required to ensure that the XML representation of the DataSet always has a name for the document element, which is the highest level element in a schema definition.
The following example initializes a new DataSet with a given name, then shows the simplest way to retrieve and display the DataSetName.
DataSet myDataSet = new DataSet ( "SuppliersProducts" );
...
Response.Write ( myDataSet.DataSetName );
Dim myDataSet As New DataSet ( "SuppliersProducts" )
...
Response.Write ( myDataSet.DataSetName ) |
|
C# |
VB |
DataSet Members DataSet Constructor Overload List DataSetName DataTable DataTableCollection