asp.net.ph

DataSet Constructor ( String )

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
);

Parameters

dataSetName
The name of the DataSet.

Remarks

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.

Example

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 );
  C# VB

See Also

DataSet Members   DataSet Constructor Overload List   DataSetName   DataTable   DataTableCollection Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph