System.Data Namespace DataSet Class
Sets or retrieves the name of the current DataSet.
Script |
DataSet.DataSetName [ = strName ] |
strName |
String specifying the name of the DataSet. |
The property is read/write with no default value.
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