System.Data.DataSet.Tables Property

Gets the collection of tables contained in the System.Data.DataSet.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
public DataTableCollection Tables { get; }

Value

The System.Data.DataTableCollection contained by this DataSet; otherwise a null value if no System.Data.DataTable objects exist.

Remarks

To add tables to the collection, use DataTableCollection.Add(DataTable) method of the System.Data.DataTableCollection. To remove tables, use the DataTableCollection.Remove(DataTable) method.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0