DataTableMappingCollection::Add Method (String^, String^)
.NET Framework (current version)
Adds a DataTableMapping object to the collection when given a source table name and a DataSet table name.
Assembly: System.Data (in System.Data.dll)
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.
.NET Framework
Available since 1.1
Available since 1.1
Show: