This documentation is archived and is not being maintained.

IColumnMappingCollection.Add Method

Adds a ColumnMapping object to the ColumnMapping collection using the source column and DataSet column names.

[Visual Basic]
Function Add( _
   ByVal sourceColumnName As String, _
   ByVal dataSetColumnName As String _
) As IColumnMapping
IColumnMapping Add(
   string sourceColumnName,
 string dataSetColumnName
IColumnMapping* Add(
   String* sourceColumnName,
 String* dataSetColumnName
function Add(
   sourceColumnName : String,
 dataSetColumnName : String
) : IColumnMapping;


The case-sensitive name of the source column.
The name of the DataSet column.

Return Value

The ColumnMapping object that was added to the collection.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

IColumnMappingCollection Interface | IColumnMappingCollection Members | System.Data Namespace