Represents the collection of System.Data.DataRelation objects for this System.Data.DataSet.
See Also: DataRelationCollection Members
A System.Data.DataRelationCollection object enables navigation between related parent/child System.Data.DataTable objects.
You create a System.Data.DataRelationCollection object by defining it as a property of either the System.Data.DataSet or the System.Data.DataTable, instead of by directly using a constructor. (Use the DataSet.Relations property of the System.Data.DataSet, or the DataTable.ParentRelations property of the System.Data.DataTable.)
To access the collection, use the DataSet.Relations property of the System.Data.DataSet object.
As soon as the collection exists you can manage the objects it contains by using methods such as DataRelationCollection.Add(DataRelation), DataRelationCollection.Clear, and DataRelationCollection.Remove(DataRelation).