NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataRelation.DataSet

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;

Property Value

A DataSet to which the RelationsCollection belongs.

Remarks

The RelationsCollection that belongs to a DataSet is accessed through the Relations property.

Example [Visual Basic]

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

See Also

DataRelation Class | DataRelation Members | System.Data Namespace | DataSet | Relations | RelationsCollection