DataSet.CreateDataReader Method ()
.NET Framework 3.0
Returns a DataTableReader with one result set per DataTable, in the same sequence as the tables appear in the Tables collection.
Namespace: System.Data
Assembly: System.Data (in system.data.dll)
Assembly: System.Data (in system.data.dll)
public DataTableReader CreateDataReader ()
public function CreateDataReader () : DataTableReader
Not applicable.
Return Value
A DataTableReader containing one or more result sets, corresponding to the DataTable instances contained within the source DataSet.The following example creates three DataTable instances, and adds each to a DataSet. The example then passes the filled DataSet to a procedure that calls the CreateDataReader method, and proceeds to iterate through all the result sets contained within the DataTableReader. The example displays the results in the Console window.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: