Bagikan melalui


UniqueConstraint.Table Properti

Definisi

Mendapatkan tabel tempat batasan ini berada.

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

Nilai Properti

yang DataTable menjadi milik batasan.

Atribut

Contoh

Contoh berikut mengembalikan UniqueConstraint objek 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

Berlaku untuk

Lihat juga