DataColumnMappingCollection.IColumnMappingCollection.Add Method (String, String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Adds a DataColumnMapping object to the DataColumnMappingCollection by using the source column and DataSet column names.

Namespace:   System.Data.Common
Assembly:  System.Data (in System.Data.dll)

IColumnMapping IColumnMappingCollection.Add(
	string sourceColumnName,
	string dataSetColumnName


Type: System.String

The case-sensitive name of the source column.

Type: System.String

The name of the DataSet column.

Return Value

Type: System.Data.IColumnMapping

The ColumnMapping object that was added to the collection.

This member is an explicit interface member implementation. It can be used only when the DataColumnMappingCollection instance is cast to an IColumnMappingCollection interface.

For more information, see Add.

.NET Framework
Available since 1.1
Return to top