次の方法で共有


DataRelation.ChildTable プロパティ

このリレーションシップの子テーブルを取得します。

Public Overridable ReadOnly Property ChildTable As DataTable
[C#]
public virtual DataTable ChildTable {get;}
[C++]
public: __property virtual DataTable* get_ChildTable();
[JScript]
public function get ChildTable() : DataTable;

プロパティ値

このリレーションシップの子テーブルである DataTable

使用例

[Visual Basic] DataRelation の子 DataTable を取得する例を次に示します。

 
Private Sub GetChildTable()
    Dim t As DataTable
    Dim dr As DataRelation
    ' Get a DataRelation of a DataSet.
    dr = DataSet1.Relations("CustomerOrders")
    ' Get the child DataTable of the relation.
    t = dr.ChildTable
    ' Print the name and number of rows of the child table.
    Debug.Write( t.TableName, t.Rows.Count.ToString())
 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 | ParentTable