Edit

Share via


IColumnMappingCollection.Add(String, String) Method

Definition

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

public:
 System::Data::IColumnMapping ^ Add(System::String ^ sourceColumnName, System::String ^ dataSetColumnName);
public System.Data.IColumnMapping Add (string sourceColumnName, string dataSetColumnName);
abstract member Add : string * string -> System.Data.IColumnMapping
Public Function Add (sourceColumnName As String, dataSetColumnName As String) As IColumnMapping

Parameters

sourceColumnName
String

The case-sensitive name of the source column.

dataSetColumnName
String

The name of the DataSet column.

Returns

The ColumnMapping object that was added to the collection.

Applies to