DataTable.DataSet プロパティ
アセンブリ: System.Data (system.data.dll 内)
構文
解説
使用例
DataSet プロパティを使用して特定のテーブルの親 DataSet を返す例を次に示します。
Private Function GetDataSetFromTable() As DataSet Dim table As DataTable ' Check to see if the DataGrid's DataSource property ' is a DataTable. If TypeOf dataGrid1.DataSource Is DataTable Then table = CType(DataGrid1.DataSource, DataTable) GetDataSetFromTable = table.DataSet Else return Nothing End If End Function
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- DataTable.DataSet プロパティのページへのリンク