ForeignKeyConstraint Class System.Data Namespace
Returns the child table of this constraint.
[ VB ]
Overridable Public ReadOnly Property Table As DataTable
[ C# ]
public DataTable Table {override get;}
[ C++ ]
public: __property virtual DataTable* get_Table ( );
[ JScript ]
public function get Table ( ) : DataTable
A DataTable that is the child table in the constraint.
[ VB ]
Private GetRelatedTables ( )
Dim dr As DataRelation
Dim t As DataTable
' get the DataRelation from a DataSet.
For Each dr In myDataSet.Relations
If dr.GetType.ToString = "System.Data.ForeignKeyConstraint" Then
t = dr.Table
Response.Write ( t.TableName, t.Columns.Count, t.Rows.Count
End If
Next
End
ForeignKeyConstraint Members Columns DataTable RelatedTable RelatedColumns