UniqueConstraint.Table Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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; }
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
Property Value
The DataTable to which the constraint belongs.
- Attributes
Examples
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
Applies to
See also
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา