DataSet.CreateDataReader Method

Definition

Returns a DataTableReader with one result set per DataTable, in the same sequence as the tables appear in the Tables collection.

Overloads

Name Description
CreateDataReader(DataTable[])

Returns a DataTableReader with one result set per DataTable.

CreateDataReader()

Returns a DataTableReader with one result set per DataTable, in the same sequence as the tables appear in the Tables collection.

Examples

This example, a Console application, creates three DataTable instances and adds each to a DataSet. The example calls the CreateDataReader method and displays the contents of the returned