DataColumnMappingCollection::Add Method (String^, String^)

 

Adds a DataColumnMapping object to the collection when given a source column name and a DataSet column name.

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

public:
DataColumnMapping^ Add(
	String^ sourceColumn,
	String^ dataSetColumn
)

Parameters

sourceColumn
Type: System::String^

The case-sensitive name of the source column to map to.

dataSetColumn
Type: System::String^

The name, which is not case-sensitive, of the DataSet column to map to.

Return Value

Type: System.Data.Common::DataColumnMapping^

The DataColumnMapping object that was added to the collection.

The following example creates a DataColumnMappingCollection collection, adds DataColumnMapping objects to the collection, and displays a list of the mapped source columns.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: