DataColumnCollection::Remove Method (DataColumn^)
.NET Framework (current version)
Removes the specified DataColumn object from the collection.
Assembly: System.Data (in System.Data.dll)
Parameters
- column
-
Type:
System.Data::DataColumn^
The DataColumn to remove.
| Exception | Condition |
|---|---|
| ArgumentNullException | The column parameter is null. |
| ArgumentException | The column does not belong to this collection. -Or- The column is part of a relationship. -Or- Another column's expression depends on this column. |
If the collection is successfully changed by adding or removing columns, the CollectionChanged event occurs.
.NET Framework
Available since 1.1
Available since 1.1
Show: