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

 

Adds a DataTableMapping object to the collection when given a source table name and a DataSet table name.

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

public:
DataTableMapping^ Add(
	String^ sourceTable,
	String^ dataSetTable
)

Parameters

sourceTable
Type: System::String^

The case-sensitive name of the source table to map from.

dataSetTable
Type: System::String^

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

Return Value

Type: System.Data.Common::DataTableMapping^

The DataTableMapping object that was added to the collection.

The following example creates a DataTableMappingCollection, adds DataTableMapping objects to the collection, and displays a list of the mapped source tables.

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

.NET Framework
Available since 1.1
Return to top
Show: