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
[C#]
IColumnMapping Add(
   string sourceColumnName,
 string dataSetColumnName
);
[C++]
IColumnMapping* Add(
   String* sourceColumnName,
 String* dataSetColumnName
);
[JScript]
function Add(
   sourceColumnName : String,
 dataSetColumnName : String
) : IColumnMapping;

Parameters

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

Return Value

The ColumnMapping object that was added to the collection.

Requirements

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

Show: