System.Data.DataTableCollection.Remove Method

Removes the specified System.Data.DataTable object from the collection.

Syntax

public void Remove (DataTable table)

Parameters

table
The DataTable to remove.

Remarks

The DataTableCollection.CollectionChanged event occurs when a table is successfully removed.

To determine whether a given table exists and can be removed before invoking DataTableCollection.Remove(DataTable), use the DataTableCollection.Contains(string) and the DataTableCollection.CanRemove(DataTable) methods.

Requirements

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