System.Data.Common Namespace DataColumnMapping Class
Initializes a new instance of a DataColumnMapping class with the specified source column name and DataSet column name to map to.
[ VB ]
Overloads Public Sub New ( _
ByVal sourceColumn As String, _
ByVal dataSetColumn As String _
)
[ C# ]
public DataColumnMapping (
string sourceColumn,
string dataSetColumn
);
[ C++ ]
public: DataColumnMapping (
String* sourceColumn,
String* dataSetColumn
);
[ JScript ]
public function DataColumnMapping (
sourceColumn : String,
dataSetColumn : String
);
- sourceColumn
- The case-sensitive name of a SourceColumn to map from.
- dataSetColumn
- The case-insensitive name of a DataSetColumn to map to.
The following example initializes a DataColumnMapping object using this constructor.
void CreateDataColumnMapping ( ) {
DataColumnMapping myMap = new DataColumnMapping ( "Description", "DataDescription" );
}
Sub CreateDataColumnMapping ( )
Dim myMap As New DataColumnMapping ( "Description", "DataDescription" )
End Sub |
|
C# |
VB |
DataColumnMapping Members DataColumnMapping Constructor Overload List