Represents the collection of tables for the System.Data.DataSet.
See Also: DataTableCollection Members
The System.Data.DataTableCollection contains all the System.Data.DataTable objects for a particular System.Data.DataSet. To access the System.Data.DataTableCollection of a System.Data.DataSet, use the DataSet.Tables property.
The System.Data.DataTableCollection uses methods such as DataTableCollection.Add(DataTable), DataTableCollection.Clear, and DataTableCollection.Remove(DataTable) to manage the items in the collection.
Use the DataTableCollection.Contains(string) method to determine whether a particular table (specified by either index or name) is in the collection.
To navigate from one table to another, use the DataTable.ChildRelations or DataTable.ParentRelations property of the System.Data.DataTable to access its collection of System.Data.DataRelation objects. You can also use the DataSet.Relations property to navigate through the parent/child relationships of the DataTables in a particular System.Data.DataSet collection.