DataColumnMapping DataColumnMapping DataColumnMapping DataColumnMapping Constructors

Definition

Overloads

DataColumnMapping() DataColumnMapping() DataColumnMapping()

Initializes a new instance of the DataColumnMapping class.

DataColumnMapping(String, String) DataColumnMapping(String, String) DataColumnMapping(String, String) DataColumnMapping(String, String)

Initializes a new instance of the DataColumnMapping class with the specified source column name and DataSet column name to map to.

DataColumnMapping() DataColumnMapping() DataColumnMapping()

Initializes a new instance of the DataColumnMapping class.

public:
 DataColumnMapping();
public DataColumnMapping ();
Public Sub New ()

Examples

The following example creates a DataColumnMapping object, sets its properties, and clones it.

public void CreateDataColumnMapping() 
{
    DataColumnMapping mapping = new DataColumnMapping();
    mapping.SourceColumn = "Description";
    mapping.DataSetColumn = "DataDescription";
}
Public Sub CreateDataColumnMapping()
    Dim mapping As New DataColumnMapping()
    mapping.SourceColumn = "Description"
    mapping.DataSetColumn = "DataDescription"
End Sub
See also

DataColumnMapping(String, String) DataColumnMapping(String, String) DataColumnMapping(String, String) DataColumnMapping(String, String)

Initializes a new instance of the DataColumnMapping class with the specified source column name and DataSet column name to map to.

public:
 DataColumnMapping(System::String ^ sourceColumn, System::String ^ dataSetColumn);
public DataColumnMapping (string sourceColumn, string dataSetColumn);
new System.Data.Common.DataColumnMapping : string * string -> System.Data.Common.DataColumnMapping
Public Sub New (sourceColumn As String, dataSetColumn As String)

Parameters

sourceColumn
String String String String

The case-sensitive column name from a data source.

dataSetColumn
String String String String

The column name, which is not case sensitive, from a DataSet to map to.

Examples

The following example creates a DataColumnMapping object, sets its properties, and clones it.

public void CreateDataColumnMapping() 
{
    DataColumnMapping mapping =
        new DataColumnMapping("Description","DataDescription");
}
Public Sub CreateDataColumnMapping()
    Dim mapping As New DataColumnMapping( _
       "Description", "DataDescription")
End Sub
See also

Applies to