System.Data Namespace Constraint Class
Returns the DataTable to which the constraint applies.
Script |
[ DataTable variable = ] Constraint.Table |
variable |
A DataTable to which the constraint applies. |
The property is read only with no default value.
The following example returns the DataTable of a Constraint.
private void GetDataTable ( UniqueConstraint myConstraint ) {
DataTable myTable = myConstraint.Table;
Response.Write ( myTable.TableName );
}
Private Sub GetDataTable ( myConstraint As UniqueConstraint )
Dim myTable As DataTable = myConstraint.Table
Response.Write ( myTable.TableName )
End Sub |
|
C# |
VB |
Constraint Members