DataColumnMappingCollection::Add Method (String^, String^)
.NET Framework (current version)
Adds a DataColumnMapping object to the collection when given a source column name and a DataSet column name.
Assembly: System.Data (in System.Data.dll)
Parameters
- sourceColumn
-
Type:
System::String^
The case-sensitive name of the source column to map to.
- dataSetColumn
-
Type:
System::String^
The name, which is not case-sensitive, of the DataSet column to map to.
Return Value
Type: System.Data.Common::DataColumnMapping^The DataColumnMapping object that was added to the collection.
The following example creates a DataColumnMappingCollection collection, adds DataColumnMapping objects to the collection, and displays a list of the mapped source columns.
.NET Framework
Available since 1.1
Available since 1.1
Show: