Constraint.Table 属性

定义

获取向其应用约束的 DataTable

public:
 abstract property System::Data::DataTable ^ Table { System::Data::DataTable ^ get(); };
public abstract System.Data.DataTable? Table { get; }
public abstract System.Data.DataTable Table { get; }
[System.Data.DataSysDescription("ConstraintTableDescr")]
public abstract System.Data.DataTable Table { get; }
member this.Table : System.Data.DataTable
[<System.Data.DataSysDescription("ConstraintTableDescr")>]
member this.Table : System.Data.DataTable
Public MustOverride ReadOnly Property Table As DataTable

属性值

向其应用约束的 DataTable

属性

示例

以下示例返回 DataTableConstraint

private void GetDataTable(UniqueConstraint constraint){
   DataTable table = constraint.Table;
   Console.WriteLine(table.TableName);
}
Private Sub GetDataTable(constraint As UniqueConstraint)
    Dim table As DataTable = constraint.Table
    Console.WriteLine(table.TableName)
End Sub

适用于