DataColumnMappingCollection::RemoveAt Method (Int32)
.NET Framework (current version)
Removes the DataColumnMapping object with the specified index from the collection.
Assembly: System.Data (in System.Data.dll)
Parameters
- index
-
Type:
System::Int32
The zero-based index of the DataColumnMapping object to remove.
Implements
IList::RemoveAt(Int32)| Exception | Condition |
|---|---|
| IndexOutOfRangeException | There is no DataColumnMapping object with the specified index. |
The following example searches for a DataColumnMapping object with the given index within a DataColumnMappingCollection collection. If the DataColumnMapping exists, the mapping is removed. This example assumes that a DataColumnMappingCollection collection has been created.
.NET Framework
Available since 1.1
Available since 1.1
Show: