Gets the DataSet to which the relations' collection belongs to.
[Visual Basic] Overridable Public ReadOnly Property DataSet As DataSet [C#] public DataSet DataSet {virtual get;} [C++] public: __property virtual DataSet* get_DataSet(); [JScript] public function get DataSet() : DataSet;
A DataSet to which the RelationsCollection belongs.
The RelationsCollection that belongs to a DataSet is accessed through the Relations property.
The following example gets the DataSet of a DataRelation.
[Visual Basic]
Private Sub GetRelDataSet(myRelation As DataRelation) ' Get the DataSet of the passed in DataRelation. ds As DataSet ds = myRelation.DataSet ' Print the table names of each table in the DataSet. Dim t As DataTable For Each t In ds.Tables Debug.Print t.TableName Next End Sub
DataRelation Class | DataRelation Members | System.Data Namespace | DataSet | Relations | RelationsCollection