UniqueConstraint.Table プロパティ

定義

制約が属するテーブルを取得します。Gets the table to which this constraint belongs.

public:
 virtual property System::Data::DataTable ^ Table { System::Data::DataTable ^ 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
Public Overrides ReadOnly Property Table As DataTable

プロパティ値

制約が属する DataTableThe DataTable to which the constraint belongs.

属性

次の例では、UniqueConstraint オブジェクトの DataTableが返されます。The following example returns a UniqueConstraint object's DataTable.

Private Sub GetTableFromConstraint()
    Dim dataTable As DataTable
    Dim uniqueConstraint As UniqueConstraint

    ' Get a UniqueConstraint.
    uniqueConstraint = _
        CType(DataSet1.Tables("Suppliers").Constraints(0), _
        UniqueConstraint)

    ' Get the DataTable.
    dataTable = uniqueConstraint.Table
End Sub

適用対象

こちらもご覧ください