Gets the DataSet to which this constraint belongs.
[Visual Basic] Overridable Public ReadOnly Property DataSet As DataSet [C#] public DataSet DataSet {override get;} [C++] public: __property virtual DataSet* get_DataSet(); [JScript] public function get DataSet() : DataSet;
The DataSet to which this constraint belongs.
The following example returns the DataSet that a UniqueConstraint belongs to.
[Visual Basic]
Private Sub GetDataSetFromConstraint(t As DataTable) Dim ds As DataSet ' Get a UniqueConstraint from the parameter DataTable Dim cstrt As UniqueConstraint Set cstrt = t.Constaints(0) ' Get the DataTable. Set ds = cstrt.DataSet End Sub
UniqueConstraint Class | UniqueConstraint Members | System.Data Namespace