DataRelation.ParentTable プロパティ
この DataRelation の親 DataTable を取得します。
Public Overridable ReadOnly Property ParentTable As DataTable
[C#]
public virtual DataTable ParentTable {get;}
[C++]
public: __property virtual DataTable* get_ParentTable();
[JScript]
public function get ParentTable() : DataTable;
プロパティ値
このリレーションシップの親テーブルである DataTable 。
使用例
[Visual Basic] DataRelation の親 DataTable を取得する例を次に示します。
Private Sub GetParentTable()
Dim t As DataTable
Dim r As DataRelation
' Get a DataRelation of a DataSet.
r = DataSet1.Relations("CustomerOrders")
' Get the parent DataTable of the relation.
t = r.ParentTable
' Print the name and number of rows of the parent table.
Debug.Write(t.TableName)
Debug.Write(t.Rows.Count)
End Sub
[C#, C++, JScript] C#、C++、および JScript のサンプルはありません。Visual Basic のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET
参照
DataRelation クラス | DataRelation メンバ | System.Data 名前空間 | DataTable | ChildTable