ForeignKeyConstraint.Table 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得這個條件約束的子資料表。
public:
virtual property System::Data::DataTable ^ Table { System::Data::DataTable ^ get(); };
public override System.Data.DataTable? Table { get; }
public override System.Data.DataTable Table { get; }
[System.Data.DataSysDescription("ConstraintTableDescr")]
public override System.Data.DataTable Table { get; }
member this.Table : System.Data.DataTable
[<System.Data.DataSysDescription("ConstraintTableDescr")>]
member this.Table : System.Data.DataTable
Public Overrides ReadOnly Property Table As DataTable
屬性值
DataTable,即條件約束中的子資料表。
- 屬性
範例
Private Sub GetRelatedTables()
Dim relation As DataRelation
Dim dataTable As DataTable
' Get the DataRelation from a DataSet.
For Each relation In DataSet1.Relations
If relation.GetType.ToString = _
"System.Data.ForeignKeyConstraint" Then
dataTable = relation.ParentTable
Console.WriteLine(dataTable.TableName, _
dataTable.Columns.Count, dataTable.Rows.Count)
End If
Next
End Sub