DataSet.Load メソッド (IDataReader, LoadOption, DataTable[])
アセンブリ: System.Data (system.data.dll 内)

Public Sub Load ( _ reader As IDataReader, _ loadOption As LoadOption, _ ParamArray tables As DataTable() _ )
Dim instance As DataSet Dim reader As IDataReader Dim loadOption As LoadOption Dim tables As DataTable() instance.Load(reader, loadOption, tables)

Load メソッドは、単一の DataTable に、IDataReader のインスタンスから取得したデータを挿入する手段を提供します。このメソッドは同じ機能を提供しますが、複数の結果セットを IDataReader から読み込んで、DataSet 内の複数のテーブルに格納します。
loadOption パラメータを使用して、既存のデータに対してデータをインポートする方法を指定できます。このパラメータには、LoadOption 列挙体の任意の値を設定できます。このパラメータの使用方法の詳細については、DataTableLoad メソッドに関するドキュメントを参照してください。
tables パラメータを使用して DataTable インスタンスの配列を指定することで、リーダーによって読み込まれた結果セットにそれぞれ対応するテーブルの順序を指定できます。Load メソッドは、ソース データ リーダーから得た単一の結果セットのデータを指定した各 DataTable インスタンスに格納します。1 つの結果セットの操作が終わると、Load メソッドはリーダー内の次の結果セットを操作します。これをすべての結果セットについて行います。
このメソッドの名前解決スキームは、DbDataAdapter クラスの Fill メソッドで使用されるスキームと同じです。

次に示す例では、新しい DataSet を作成し、2 つの DataTable インスタンスを DataSet に追加した後、Load メソッドを使用して DataSet に入力し、2 つの結果セットを含む DataTableReader からデータを取得します。最後に、コンソール ウィンドウにテーブルの内容を表示します。
Sub Main() Dim dataSet As New DataSet Dim customerTable As New DataTable Dim productTable As New DataTable ' This information is cosmetic, only. customerTable.TableName = "Customers" productTable.TableName = "Products" ' Add the tables to the DataSet: dataSet.Tables.Add(customerTable) dataSet.Tables.Add(productTable) ' Load the data into the existing DataSet. Dim reader As DataTableReader = GetReader() dataSet.Load(reader, LoadOption.OverwriteChanges, _ customerTable, productTable) ' Print out the contents of each table: For Each table As DataTable In dataSet.Tables PrintColumns(table) Next Console.WriteLine("Press any key to continue.") Console.ReadKey() End Sub Private Function GetCustomers() As DataTable ' Create sample Customers table. Dim table As New DataTable table.TableName = "Customers" ' Create two columns, ID and Name. Dim idColumn As DataColumn = table.Columns.Add("ID", _ GetType(Integer)) table.Columns.Add("Name", GetType(String)) ' Set the ID column as the primary key column. table.PrimaryKey = New DataColumn() {idColumn} table.Rows.Add(New Object() {0, "Mary"}) table.Rows.Add(New Object() {1, "Andy"}) table.Rows.Add(New Object() {2, "Peter"}) table.AcceptChanges() Return table End Function Private Function GetProducts() As DataTable ' Create sample Products table, in order ' to demonstrate the behavior of the DataTableReader. Dim table As New DataTable table.TableName = "Products" ' Create two columns, ID and Name. Dim idColumn As DataColumn = table.Columns.Add("ID", _ GetType(Integer)) table.Columns.Add("Name", GetType(String)) ' Set the ID column as the primary key column. table.PrimaryKey = New DataColumn() {idColumn} table.Rows.Add(New Object() {0, "Wireless Network Card"}) table.Rows.Add(New Object() {1, "Hard Drive"}) table.Rows.Add(New Object() {2, "Monitor"}) table.Rows.Add(New Object() {3, "CPU"}) Return table End Function Private Function GetReader() As DataTableReader ' Return a DataTableReader containing multiple ' result sets, just for the sake of this demo. Dim dataSet As New DataSet dataSet.Tables.Add(GetCustomers()) dataSet.Tables.Add(GetProducts()) Return dataSet.CreateDataReader() End Function Private Sub PrintColumns( _ ByVal table As DataTable) Console.WriteLine() Console.WriteLine(table.TableName) Console.WriteLine("=========================") ' Loop through all the rows in the table. For Each row As DataRow In table.Rows For Each col As DataColumn In table.Columns Console.Write(row(col).ToString() & " ") Next Console.WriteLine() Next End Sub
static void Main() { DataSet dataSet = new DataSet(); DataTable customerTable = new DataTable(); DataTable productTable = new DataTable(); // This information is cosmetic, only. customerTable.TableName = "Customers"; productTable.TableName = "Products"; // Add the tables to the DataSet: dataSet.Tables.Add(customerTable); dataSet.Tables.Add(productTable); // Load the data into the existing DataSet. DataTableReader reader = GetReader(); dataSet.Load(reader, LoadOption.OverwriteChanges, customerTable, productTable); // Print out the contents of each table: foreach (DataTable table in dataSet.Tables) { PrintColumns(table); } Console.WriteLine("Press any key to continue."); Console.ReadKey(); } private static DataTable GetCustomers() { // Create sample Customers table. DataTable table = new DataTable(); table.TableName = "Customers"; // Create two columns, ID and Name. DataColumn idColumn = table.Columns.Add("ID", typeof(int)); table.Columns.Add("Name", typeof(string)); // Set the ID column as the primary key column. table.PrimaryKey = new DataColumn[] { idColumn }; table.Rows.Add(new object[] { 0, "Mary" }); table.Rows.Add(new object[] { 1, "Andy" }); table.Rows.Add(new object[] { 2, "Peter" }); table.AcceptChanges(); return table; } private static DataTable GetProducts() { // Create sample Products table. DataTable table = new DataTable(); table.TableName = "Products"; // Create two columns, ID and Name. DataColumn idColumn = table.Columns.Add("ID", typeof(int)); table.Columns.Add("Name", typeof(string)); // Set the ID column as the primary key column. table.PrimaryKey = new DataColumn[] { idColumn }; table.Rows.Add(new object[] { 0, "Wireless Network Card" }); table.Rows.Add(new object[] { 1, "Hard Drive" }); table.Rows.Add(new object[] { 2, "Monitor" }); table.Rows.Add(new object[] { 3, "CPU" }); table.AcceptChanges(); return table; } private static void PrintColumns(DataTable table) { Console.WriteLine(); Console.WriteLine(table.TableName); Console.WriteLine("========================="); // Loop through all the rows in the table: foreach (DataRow row in table.Rows) { for (int i = 0; i < table.Columns.Count; i++) { Console.Write(row[i] + " "); } Console.WriteLine(); } } private static DataTableReader GetReader() { // Return a DataTableReader containing multiple // result sets, just for the sake of this demo. DataSet dataSet = new DataSet(); dataSet.Tables.Add(GetCustomers()); dataSet.Tables.Add(GetProducts()); return dataSet.CreateDataReader(); }

Windows 98, Windows 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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DataSet.Load メソッド (IDataReader, LoadOption, FillErrorEventHandler, DataTable[])
アセンブリ: System.Data (system.data.dll 内)

Public Overridable Sub Load ( _ reader As IDataReader, _ loadOption As LoadOption, _ errorHandler As FillErrorEventHandler, _ ParamArray tables As DataTable() _ )
Dim instance As DataSet Dim reader As IDataReader Dim loadOption As LoadOption Dim errorHandler As FillErrorEventHandler Dim tables As DataTable() instance.Load(reader, loadOption, errorHandler, tables)
public virtual void Load ( IDataReader reader, LoadOption loadOption, FillErrorEventHandler errorHandler, params DataTable[] tables )
public: virtual void Load ( IDataReader^ reader, LoadOption loadOption, FillErrorEventHandler^ errorHandler, ... array<DataTable^>^ tables )
public void Load ( IDataReader reader, LoadOption loadOption, FillErrorEventHandler errorHandler, DataTable[] tables )
public function Load ( reader : IDataReader, loadOption : LoadOption, errorHandler : FillErrorEventHandler, ... tables : DataTable[] )

Load メソッドは、単一の DataTable に、IDataReader のインスタンスから取得したデータを挿入する手段を提供します。このメソッドは同じ機能を提供しますが、複数の結果セットを IDataReader から読み込んで、DataSet 内の複数のテーブルに格納します。
loadOption パラメータを使用して、既存のデータに対してデータをインポートする方法を指定できます。このパラメータには、LoadOption 列挙体の任意の値を設定できます。このパラメータの使用方法の詳細については、DataTableLoad メソッドに関するドキュメントを参照してください。
errorHandler パラメータは、データの読み込み中にエラーが発生した場合に呼び出されるプロシージャを参照する FillErrorEventHandler デリゲートです。プロシージャに FillErrorEventArgs パラメータを渡すことで得られるプロパティを使用して、発生したエラー、データの現在の行、入力先の DataTable に関する情報を取得できます。単純な try/catch ブロックを使用せず、このデリゲート機構を使用することで、エラーの特定と状況の処理を行い、さらに必要であれば処理を続行できます。FillErrorEventArgs パラメータには Continue プロパティがあります。エラーの処理後に処理を続行することを指定するには、このプロパティを true に設定します。処理を停止するには、このプロパティを false に設定します。このプロパティを false に設定すると、問題の原因となったコードによって例外がスローされるので注意してください。
tables パラメータを使用して DataTable インスタンスの配列を指定することで、リーダーによって読み込まれた結果セットにそれぞれ対応するテーブルの順序を指定できます。Load メソッドは、ソース データ リーダーから得た単一の結果セットのデータを指定した各 DataTable インスタンスに格納します。1 つの結果セットの操作が終わると、Load メソッドはリーダー内の次の結果セットを操作します。これをすべての結果セットについて行います。
このメソッドの名前解決スキームは、DbDataAdapter クラスの Fill メソッドで使用されるスキームと同じです。

次に示す例では、テーブルを DataSet に追加した後、Load メソッドを使用して、互換性のないスキーマを含む DataTableReader からデータを読み込みます。この例ではエラーをトラップするのではなく、FillErrorEventHandler デリゲートを使用してエラーを調査し、処理します。
Sub Main() Dim dataSet As New DataSet Dim table As New DataTable() ' Attempt to load data from a data reader in which ' the schema is incompatible with the current schema. ' If you use exception handling, you won't get the chance ' to examine each row, and each individual table, ' as the Load method progresses. ' By taking advantage of the FillErrorEventHandler delegate, ' you can interact with the Load process as an error occurs, ' attempting to fix the problem, or simply continuing or quitting ' the Load process.: dataSet = New DataSet() table = GetIntegerTable() dataSet.Tables.Add(table) Dim reader As New DataTableReader(GetStringTable()) dataSet.Load(reader, LoadOption.OverwriteChanges, _ AddressOf FillErrorHandler, table) Console.WriteLine("Press any key to continue.") Console.ReadKey() End Sub Private Sub FillErrorHandler(ByVal sender As Object, _ ByVal e As FillErrorEventArgs) ' You can use the e.Errors value to determine exactly what ' went wrong. If e.Errors.GetType Is GetType(System.FormatException) Then Console.WriteLine("Error when attempting to update the value: {0}", _ e.Values(0)) End If ' Setting e.Continue to True tells the Load ' method to continue trying. Setting it to False ' indicates that an error has occurred, and the ' Load method raises the exception that got ' you here. e.Continue = True End Sub Private Function GetIntegerTable() As DataTable ' Create sample table with a single Int32 column. Dim table As New DataTable Dim idColumn As DataColumn = table.Columns.Add("ID", _ GetType(Integer)) ' Set the ID column as the primary key column. table.PrimaryKey = New DataColumn() {idColumn} table.Rows.Add(New Object() {4}) table.Rows.Add(New Object() {5}) table.TableName = "IntegerTable" table.AcceptChanges() Return table End Function Private Function GetStringTable() As DataTable ' Create sample table with a single String column. Dim table As New DataTable Dim idColumn As DataColumn = table.Columns.Add("ID", _ GetType(String)) ' Set the ID column as the primary key column. table.PrimaryKey = New DataColumn() {idColumn} table.Rows.Add(New Object() {"Mary"}) table.Rows.Add(New Object() {"Andy"}) table.Rows.Add(New Object() {"Peter"}) table.AcceptChanges() Return table End Function Private Sub PrintColumns( _ ByVal table As DataTable) ' Loop through all the rows in the DataTableReader. For Each row As DataRow In table.Rows For Each col As DataColumn In table.Columns Console.Write(row(col).ToString() & " ") Next Console.WriteLine() Next End Sub
static void Main() { // Attempt to load data from a data reader in which // the schema is incompatible with the current schema. // If you use exception handling, you won't get the chance // to examine each row, and each individual table, // as the Load method progresses. // By taking advantage of the FillErrorEventHandler delegate, // you can interact with the Load process as an error occurs, // attempting to fix the problem, or simply continuing or quitting // the Load process.: DataSet dataSet = new DataSet(); DataTable table = GetIntegerTable(); dataSet.Tables.Add(table); DataTableReader reader = new DataTableReader(GetStringTable()); dataSet.Load(reader, LoadOption.OverwriteChanges, FillErrorHandler, table); Console.WriteLine("Press any key to continue."); Console.ReadKey(); } private static DataTable GetIntegerTable() { // Create sample Customers table, in order // to demonstrate the behavior of the DataTableReader. DataTable table = new DataTable(); // Create two columns, ID and Name. DataColumn idColumn = table.Columns.Add("ID", typeof(int)); // Set the ID column as the primary key column. table.PrimaryKey = new DataColumn[] { idColumn }; table.Rows.Add(new object[] { 4 }); table.Rows.Add(new object[] { 5 }); table.AcceptChanges(); return table; } private static DataTable GetStringTable() { // Create sample Customers table, in order // to demonstrate the behavior of the DataTableReader. DataTable table = new DataTable(); // Create two columns, ID and Name. DataColumn idColumn = table.Columns.Add("ID", typeof(string)); // Set the ID column as the primary key column. table.PrimaryKey = new DataColumn[] { idColumn }; table.Rows.Add(new object[] { "Mary" }); table.Rows.Add(new object[] { "Andy" }); table.Rows.Add(new object[] { "Peter" }); table.AcceptChanges(); return table; } static void FillErrorHandler(object sender, FillErrorEventArgs e) { // You can use the e.Errors value to determine exactly what // went wrong. if (e.Errors.GetType() == typeof(System.FormatException)) { Console.WriteLine("Error when attempting to update the value: {0}", e.Values[0]); } // Setting e.Continue to True tells the Load // method to continue trying. Setting it to False // indicates that an error has occurred, and the // Load method raises the exception that got // you here. e.Continue = true; }

Windows 98, Windows 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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DataSet.Load メソッド (IDataReader, LoadOption, String[])
アセンブリ: System.Data (system.data.dll 内)

Public Sub Load ( _ reader As IDataReader, _ loadOption As LoadOption, _ ParamArray tables As String() _ )
Dim instance As DataSet Dim reader As IDataReader Dim loadOption As LoadOption Dim tables As String() instance.Load(reader, loadOption, tables)

Load メソッドは、単一の DataTable に、IDataReader のインスタンスから取得したデータを挿入する手段を提供します。このメソッドは同じ機能を提供しますが、複数の結果セットを IDataReader から読み込んで、DataSet 内の複数のテーブルに格納します。
loadOption パラメータを使用して、既存のデータに対してデータをインポートする方法を指定できます。このパラメータには、LoadOption 列挙体の任意の値を設定できます。このパラメータの使用方法の詳細については、Load メソッドに関するドキュメントを参照してください。
tables パラメータを使用してテーブル名の配列を指定することで、リーダーによって読み込まれた結果セットにそれぞれ対応するテーブルの順序を指定できます。Load メソッドは、テーブル名の配列に含まれている名前を順番に DataSet 内で検索し、一致するテーブルを探します。一致するテーブルが見つかると、そのテーブルに現在の結果セットの内容が読み込まれます。一致するテーブルが見つからない場合、テーブル名の配列で指定されている名前を使用してテーブルが作成されます。新しいテーブルのスキーマは、結果セットから推測されます。1 つの結果セットの操作が終わると、Load メソッドはリーダー内の次の結果セットを操作します。これをすべての結果セットについて行います。
DataSet に既定の名前空間が関連付けられている場合、新しく作成された DataTable にはその名前空間が関連付けられます。このメソッドの名前解決スキームは、DbDataAdapter クラスの Fill メソッドで使用されるスキームと同じです。

次に示すコンソール アプリケーションの例では、最初にテーブルを作成し、Load メソッドを使用してリーダーのデータを DataSet に読み込みます。次に、DataSet にテーブルを追加し、そのテーブルに DataTableReader のデータを格納します。この例では、存在しないテーブルの名前を示すパラメータを Load メソッドに渡すため、パラメータとして渡された名前に一致する新しいテーブルが Load メソッドによって作成されます。データが読み込まれた後、すべてのテーブルの内容がコンソール ウィンドウに表示されます。
Sub Main() Dim dataSet As New DataSet Dim table As DataTable Dim reader As DataTableReader = GetReader() ' The tables listed as parameters for the Load method ' should be in the same order as the tables within the IDataReader. dataSet.Load(reader, LoadOption.Upsert, "Customers", "Products") For Each table In dataSet.Tables PrintColumns(table) Next ' Now try the example with the DataSet ' already filled with data: dataSet = New DataSet dataSet.Tables.Add(GetCustomers()) dataSet.Tables.Add(GetProducts()) ' Retrieve a data reader containing changed data: reader = GetReader() ' Load the data into the existing DataSet. Retrieve the order of the ' the data in the reader from the ' list of table names in the parameters. If you specify ' a new table name here, the Load method will create ' a corresponding new table. dataSet.Load(reader, LoadOption.Upsert, "NewCustomers", "Products") For Each table In dataSet.Tables PrintColumns(table) Next Console.WriteLine("Press any key to continue.") Console.ReadKey() End Sub Private Function GetCustomers() As DataTable ' Create sample Customers table. Dim table As New DataTable table.TableName = "Customers" ' Create two columns, ID and Name. Dim idColumn As DataColumn = table.Columns.Add("ID", GetType(Integer)) table.Columns.Add("Name", GetType(String)) ' Set the ID column as the primary key column. table.PrimaryKey = New DataColumn() {idColumn} table.Rows.Add(New Object() {0, "Mary"}) table.Rows.Add(New Object() {1, "Andy"}) table.Rows.Add(New Object() {2, "Peter"}) table.AcceptChanges() Return table End Function Private Function GetProducts() As DataTable ' Create sample Products table, in order ' to demonstrate the behavior of the DataTableReader. Dim table As New DataTable table.TableName = "Products" ' Create two columns, ID and Name. Dim idColumn As DataColumn = table.Columns.Add("ID", GetType(Integer)) table.Columns.Add("Name", GetType(String)) ' Set the ID column as the primary key column. table.PrimaryKey = New DataColumn() {idColumn} table.Rows.Add(New Object() {0, "Wireless Network Card"}) table.Rows.Add(New Object() {1, "Hard Drive"}) table.Rows.Add(New Object() {2, "Monitor"}) table.Rows.Add(New Object() {3, "CPU"}) Return table End Function Private Function GetReader() As DataTableReader ' Return a DataTableReader containing multiple ' result sets, just for the sake of this demo. Dim dataSet As New DataSet dataSet.Tables.Add(GetCustomers()) dataSet.Tables.Add(GetProducts()) Return dataSet.CreateDataReader() End Function Private Sub PrintColumns( _ ByVal table As DataTable) Console.WriteLine() Console.WriteLine(table.TableName) Console.WriteLine("=========================") ' Loop through all the rows in the table. For Each row As DataRow In table.Rows For Each col As DataColumn In table.Columns Console.Write(row(col).ToString() & " ") Next Console.WriteLine() Next End Sub
static void Main() { DataSet dataSet = new DataSet(); DataTableReader reader = GetReader(); // The tables listed as parameters for the Load method // should be in the same order as the tables within the IDataReader. dataSet.Load(reader, LoadOption.Upsert, "Customers", "Products"); foreach (DataTable table in dataSet.Tables) { PrintColumns(table); } // Now try the example with the DataSet // already filled with data: dataSet = new DataSet(); dataSet.Tables.Add(GetCustomers()); dataSet.Tables.Add(GetProducts()); // Retrieve a data reader containing changed data: reader = GetReader(); // Load the data into the existing DataSet. Retrieve the order of the // the data in the reader from the // list of table names in the parameters. If you specify // a new table name here, the Load method will create // a corresponding new table. dataSet.Load(reader, LoadOption.Upsert, "NewCustomers", "Products"); foreach (DataTable table in dataSet.Tables) { PrintColumns(table); } Console.WriteLine("Press any key to continue."); Console.ReadKey(); } private static DataTable GetCustomers() { // Create sample Customers table. DataTable table = new DataTable(); table.TableName = "Customers"; // Create two columns, ID and Name. DataColumn idColumn = table.Columns.Add("ID", typeof(int)); table.Columns.Add("Name", typeof(string)); // Set the ID column as the primary key column. table.PrimaryKey = new DataColumn[] { idColumn }; table.Rows.Add(new object[] { 0, "Mary" }); table.Rows.Add(new object[] { 1, "Andy" }); table.Rows.Add(new object[] { 2, "Peter" }); table.AcceptChanges(); return table; } private static DataTable GetProducts() { // Create sample Products table. DataTable table = new DataTable(); table.TableName = "Products"; // Create two columns, ID and Name. DataColumn idColumn = table.Columns.Add("ID", typeof(int)); table.Columns.Add("Name", typeof(string)); // Set the ID column as the primary key column. table.PrimaryKey = new DataColumn[] { idColumn }; table.Rows.Add(new object[] { 0, "Wireless Network Card" }); table.Rows.Add(new object[] { 1, "Hard Drive" }); table.Rows.Add(new object[] { 2, "Monitor" }); table.Rows.Add(new object[] { 3, "CPU" }); table.AcceptChanges(); return table; } private static void PrintColumns(DataTable table) { Console.WriteLine(); Console.WriteLine(table.TableName); Console.WriteLine("========================="); // Loop through all the rows in the table: foreach (DataRow row in table.Rows) { for (int i = 0; i < table.Columns.Count; i++) { Console.Write(row[i] + " "); } Console.WriteLine(); } } private static DataTableReader GetReader() { // Return a DataTableReader containing multiple // result sets, just for the sake of this demo. DataSet dataSet = new DataSet(); dataSet.Tables.Add(GetCustomers()); dataSet.Tables.Add(GetProducts()); return dataSet.CreateDataReader(); }
この例では、コンソール ウィンドウに次のテキストが表示されます。
Customers ========================= 0 Mary 1 Andy 2 Peter Products ========================= 0 Wireless Network Card 1 Hard Drive 2 Monitor 3 CPU Customers ========================= 0 Mary 1 Andy 2 Peter Products ========================= 0 Wireless Network Card 1 Hard Drive 2 Monitor 3 CPU NewCustomers ========================= 0 Mary 1 Andy 2 Peter

Windows 98, Windows 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
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DataSet.Load メソッド

名前 | 説明 |
---|---|
DataSet.Load (IDataReader, LoadOption, DataTable[]) | 指定した IDataReader を使用するデータ ソースの値を DataSet に格納し、DataTable インスタンスの配列を使用してスキーマ情報と名前空間情報を指定します。 .NET Compact Framework によってサポートされています。 |
DataSet.Load (IDataReader, LoadOption, String[]) | 指定した IDataReader を使用するデータ ソースの値を DataSet に格納し、文字列の配列を使用して DataSet 内のテーブルの名前を指定します。 .NET Compact Framework によってサポートされています。 |
DataSet.Load (IDataReader, LoadOption, FillErrorEventHandler, DataTable[]) | 指定した IDataReader を使用するデータ ソースの値を DataSet に格納し、DataTable インスタンスの配列を使用してスキーマ情報と名前空間情報を指定します。 .NET Compact Framework によってサポートされています。 |
