IColumnMappingCollection.Add Method

DataColumnMappingCollection.IColumnMappingCollection.Add Method (String, String)

 

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
)

Parameters

sourceColumnName
Type: System.String

The case-sensitive name of the source column.

dataSetColumnName
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
Show:
© 2016 Microsoft